diff options
author | Albert Astals Cid <albert.astals@canonical.com> | 2016-09-27 17:45:29 +0200 |
---|---|---|
committer | Albert Astals Cid <albert.astals@canonical.com> | 2016-09-27 17:45:29 +0200 |
commit | 0849f12e0517693efeae0d1a1e8dcd17084abc99 (patch) | |
tree | 9cf60d5ea1fd40d1841008065f7ccefa15f9f989 | |
parent | 3fc6bda05d1abd043b70ee0944a1e8d838b7bf4f (diff) | |
download | libdbusmenu-0849f12e0517693efeae0d1a1e8dcd17084abc99.tar.gz libdbusmenu-0849f12e0517693efeae0d1a1e8dcd17084abc99.tar.bz2 libdbusmenu-0849f12e0517693efeae0d1a1e8dcd17084abc99.zip |
Make accelerator text appear again
The deprecation porting from gtk_misc_set_alignment was not done correctly in r479
-rw-r--r-- | libdbusmenu-gtk/genericmenuitem.c | 4 |
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 |