aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals@canonical.com>2016-09-27 22:03:22 +0000
committerBileto Bot <ci-train-bot@canonical.com>2016-09-27 22:03:22 +0000
commitcb0844880bc55a21c5cf5e816a08e38c431f31c6 (patch)
tree9cf60d5ea1fd40d1841008065f7ccefa15f9f989
parent3fc6bda05d1abd043b70ee0944a1e8d838b7bf4f (diff)
parent0849f12e0517693efeae0d1a1e8dcd17084abc99 (diff)
downloadlibdbusmenu-cb0844880bc55a21c5cf5e816a08e38c431f31c6.tar.gz
libdbusmenu-cb0844880bc55a21c5cf5e816a08e38c431f31c6.tar.bz2
libdbusmenu-cb0844880bc55a21c5cf5e816a08e38c431f31c6.zip
genericmenuitem: Make accelerator text appear again
The deprecation porting from gtk_misc_set_alignment was not done correctly in r479 (LP: #1628196) Approved by: Marco Trevisan (TreviƱo)
-rw-r--r--libdbusmenu-gtk/genericmenuitem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbusmenu-gtk/genericmenuitem.c b/libdbusmenu-gtk/genericmenuitem.c
index fbd0416..3a362d1 100644
--- a/libdbusmenu-gtk/genericmenuitem.c
+++ b/libdbusmenu-gtk/genericmenuitem.c
@@ -335,8 +335,8 @@ set_label (GtkMenuItem * menu_item, const gchar * in_label)
labelw = GTK_LABEL(gtk_accel_label_new(local_label));
gtk_label_set_use_markup(GTK_LABEL(labelw), TRUE);
#if GTK_CHECK_VERSION(3,0,0)
- gtk_widget_set_halign(GTK_WIDGET(labelw), GTK_ALIGN_START);
- gtk_widget_set_valign(GTK_WIDGET(labelw), GTK_ALIGN_CENTER);
+ gtk_label_set_xalign (labelw, 0);
+ gtk_label_set_yalign (labelw, 0.5);
#else
gtk_misc_set_alignment(GTK_MISC(labelw), 0.0, 0.5);
#endif