[Xfce4-commits] [xfce/garcon] 01/01: Fix left-alignment of labels in menuitems

noreply at xfce.org noreply at xfce.org
Fri Apr 14 11:46:20 CEST 2017


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository xfce/garcon.

commit e65389b7d0e0ca99dedb9b25319244f981dbdf1c
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Apr 14 10:28:48 2017 +0200

    Fix left-alignment of labels in menuitems
    
    In Gtk2 left-alignment (xalign 0.0) was the default setting for
    GtkLabels. In Gtk3 center-alignment is the default, which looks
    bad in menus. Hence we set the xalign property to 0.0 explicitely
    now.
---
 garcon-gtk/garcon-gtk-menu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/garcon-gtk/garcon-gtk-menu.c b/garcon-gtk/garcon-gtk-menu.c
index 6dcc5cd..41990f2 100644
--- a/garcon-gtk/garcon-gtk-menu.c
+++ b/garcon-gtk/garcon-gtk-menu.c
@@ -722,6 +722,7 @@ garcon_gtk_menu_create_menu_item (GarconGtkMenu *menu,
   gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
 #if GTK_CHECK_VERSION (3, 0, 0)
   box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+  gtk_label_set_xalign (GTK_LABEL (label), 0.0);
   gtk_widget_set_halign (label, GTK_ALIGN_START);
 #else
   box = gtk_hbox_new (FALSE, 0);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list