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

Yves-Alexis Perez corsac at debian.org
Tue Oct 28 20:30:54 UTC 2014


On sam., 2014-10-04 at 14:07 +0100, Chris Bainbridge wrote:
> 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 ();
> 

Can you provide the information requested at
https://bugzilla.xfce.org/show_bug.cgi?id=11217#c1 ?

Regards,
-- 
Yves-Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20141028/5b2c8d6c/attachment.sig>


More information about the Pkg-xfce-devel mailing list