diff options
author | Ted Gould <ted@gould.cx> | 2009-12-16 16:32:50 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-16 16:32:50 -0600 |
commit | 6731f63179ec24929a8209aee8eed363f3350c47 (patch) | |
tree | ef93ca531105e5bf9e26b1f6968b65ac5506ea01 /libdbusmenu-gtk/genericmenuitem.c | |
parent | 9ab79b5a7cf9a6d0224acd7902324a76ad2f8cf5 (diff) | |
download | libdbusmenu-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.c | 2 |
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 { |