[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-xfce-devel] Bug#763713: Bug#763713: xfce4-power-manager-settings: minimum window size is too big



The problem happens when the laptop battery is not recognised so the
Linux kernel instead use the hex string ID of the manufacturer and
model. These strings are 31 characters each. On the "Device" tab the
left side contains a 1 line string of the full "$manufacturer $model"
string, which for an unrecognised battery will be 63 characters long.
The container expands to hold this and keep it on a single line, which
causes the whole window to increase in size, which in turn expands all
of the tabs to fit.

The following patch will fix the width of the devices column at 200px
to stop it from  being expanded:

diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index d736cd4..f27fa70 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -2093,6 +2093,8 @@ xfpm_settings_dialog_new (XfconfChannel
*channel, gboolean auth_suspend,

     gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (sideview),TRUE);
     col = gtk_tree_view_column_new ();
+    gtk_tree_view_column_set_sizing(col, GTK_TREE_VIEW_COLUMN_FIXED);
+    gtk_tree_view_column_set_fixed_width(col, 200);

     renderer = gtk_cell_renderer_pixbuf_new ();




Reply to: