summaryrefslogtreecommitdiff
path: root/garcon-gtk
diff options
context:
space:
mode:
authorSimon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>2017-04-14 10:28:48 +0200
committerSimon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>2017-04-14 11:44:20 +0200
commite65389b7d0e0ca99dedb9b25319244f981dbdf1c (patch)
tree3d7e2ed7af2ecda9499fbf8cfc154fb2281f28d8 /garcon-gtk
parent03840db93dfbc223c8805e9f902a24b47b6ba318 (diff)
downloadgarcon-e65389b7d0e0ca99dedb9b25319244f981dbdf1c.tar.gz
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.
Diffstat (limited to 'garcon-gtk')
-rw-r--r--garcon-gtk/garcon-gtk-menu.c1
1 files changed, 1 insertions, 0 deletions
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);