Merge lp:~aacid/libdbusmenu/fix_accelerator_not_showing into lp:libdbusmenu/16.04

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 482
Merged at revision: 482
Proposed branch: lp:~aacid/libdbusmenu/fix_accelerator_not_showing
Merge into: lp:libdbusmenu/16.04
Diff against target: 14 lines (+2/-2)
1 file modified
libdbusmenu-gtk/genericmenuitem.c (+2/-2)
To merge this branch: bzr merge lp:~aacid/libdbusmenu/fix_accelerator_not_showing
Reviewer Review Type Date Requested Status
DBus Menu Team Pending
Review via email: mp+306916@code.launchpad.net

Commit message

genericmenuitem: Make accelerator text appear again

The deprecation porting from gtk_misc_set_alignment was not done correctly in r479

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libdbusmenu-gtk/genericmenuitem.c'
2--- libdbusmenu-gtk/genericmenuitem.c 2016-02-23 20:08:34 +0000
3+++ libdbusmenu-gtk/genericmenuitem.c 2016-09-27 16:29:24 +0000
4@@ -335,8 +335,8 @@
5 labelw = GTK_LABEL(gtk_accel_label_new(local_label));
6 gtk_label_set_use_markup(GTK_LABEL(labelw), TRUE);
7 #if GTK_CHECK_VERSION(3,0,0)
8- gtk_widget_set_halign(GTK_WIDGET(labelw), GTK_ALIGN_START);
9- gtk_widget_set_valign(GTK_WIDGET(labelw), GTK_ALIGN_CENTER);
10+ gtk_label_set_xalign (labelw, 0);
11+ gtk_label_set_yalign (labelw, 0.5);
12 #else
13 gtk_misc_set_alignment(GTK_MISC(labelw), 0.0, 0.5);
14 #endif

Subscribers

People subscribed via source and target branches