Taskbar Alignment

Jean-François Wauthy pollux at xfce.org
Fri Jul 23 22:17:04 CEST 2004


Le ven 23/07/2004 à 22:10, Benedikt Meurer a écrit :
> Benedikt Meurer wrote:
> > Erik Harrison wrote:
> > 
> >> What does the taskbar "Alignment" option do? Changing it seems to have
> >> no effect.
> > 
> > Its used to align the taskbar if width is < 100%. But now that you 
> > mention it: Its confusing to have the alignment sensitive if width is 
> > 100%. I think we should change it.
> 
> If nobody complains, I'd like to commit this simple patch.
> 
> Benedikt
np for me, if you weren't faster than me, i would have committed it
> 
> ______________________________________________________________________
> Index: xftaskbar_plugin.c
> ===================================================================
> RCS file: /var/cvs/xfce/xfce4/xfce-utils/xftaskbar/plugin/xftaskbar_plugin.c,v
> retrieving revision 1.27
> diff -u -r1.27 xftaskbar_plugin.c
> --- xftaskbar_plugin.c	27 Jun 2004 20:56:59 -0000	1.27
> +++ xftaskbar_plugin.c	23 Jul 2004 20:08:44 -0000
> @@ -252,6 +252,8 @@
>  
>      width_percent = (int)gtk_range_get_value(GTK_RANGE(itf->width_scale));
>  
> +    gtk_widget_set_sensitive (itf->align_frame, (width_percent < 100));
> +
>      mcs_manager_set_int(mcs_plugin->manager, "Taskbar/WidthPercent",
>              CHANNEL, width_percent);
>  
> @@ -319,6 +321,7 @@
>      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->pos_bottom_radiobutton), !position);
>  
>      dialog->align_frame = xfce_framebox_new (_("Alignment"), TRUE);
> +    gtk_widget_set_sensitive (dialog->align_frame, (width_percent < 100));
>      gtk_widget_show (dialog->align_frame);
>      gtk_box_pack_start (GTK_BOX (dialog->vbox1), dialog->align_frame, TRUE, TRUE, 0);
>  
> 
> ______________________________________________________________________
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
-- 
Jean-François Wauthy <pollux at xfce.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e.
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20040723/a59260c1/attachment.pgp>


More information about the Xfce4-dev mailing list