aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/genericmenuitem.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-16 16:32:50 -0600
committerTed Gould <ted@gould.cx>2009-12-16 16:32:50 -0600
commit6731f63179ec24929a8209aee8eed363f3350c47 (patch)
treeef93ca531105e5bf9e26b1f6968b65ac5506ea01 /libdbusmenu-gtk/genericmenuitem.c
parent9ab79b5a7cf9a6d0224acd7902324a76ad2f8cf5 (diff)
downloadlibdbusmenu-6731f63179ec24929a8209aee8eed363f3350c47.tar.gz
libdbusmenu-6731f63179ec24929a8209aee8eed363f3350c47.tar.bz2
libdbusmenu-6731f63179ec24929a8209aee8eed363f3350c47.zip
Set alignment on the labels.
Diffstat (limited to 'libdbusmenu-gtk/genericmenuitem.c')
-rw-r--r--libdbusmenu-gtk/genericmenuitem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/genericmenuitem.c b/libdbusmenu-gtk/genericmenuitem.c
index 5eba55a..3f7f22d 100644
--- a/libdbusmenu-gtk/genericmenuitem.c
+++ b/libdbusmenu-gtk/genericmenuitem.c
@@ -122,6 +122,7 @@ set_label (GtkMenuItem * menu_item, const gchar * label)
if (child == NULL) {
GtkWidget * labelw = gtk_label_new(label);
gtk_label_set_use_underline(GTK_LABEL(labelw), TRUE);
+ gtk_misc_set_alignment(GTK_MISC(labelw), 0.0, 0.5);
gtk_container_add(GTK_CONTAINER(menu_item), labelw);
gtk_widget_show(labelw);
} else if (GTK_IS_LABEL(child)) {
@@ -135,6 +136,7 @@ set_label (GtkMenuItem * menu_item, const gchar * label)
/* We don't have a label, so we need to build */
labelw = gtk_label_new(label);
gtk_label_set_use_underline(GTK_LABEL(labelw), TRUE);
+ gtk_misc_set_alignment(GTK_MISC(labelw), 0.0, 0.5);
gtk_box_pack_end(GTK_BOX(child), labelw, TRUE, TRUE, 0);
gtk_widget_show(labelw);
} else {