~ci-train-bot/libdbusmenu/libdbusmenu-ubuntu-bionic-3072

« back to all changes in this revision

Viewing changes to libdbusmenu-gtk/genericmenuitem.c

  • Committer: Bileto Bot
  • Author(s): Albert Astals Cid
  • Date: 2016-09-27 22:03:22 UTC
  • mfrom: (481.1.1 libdbusmenu)
  • Revision ID: ci-train-bot@canonical.com-20160927220322-qrcp3elm8872anpw
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)

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
                labelw = GTK_LABEL(gtk_accel_label_new(local_label));
336
336
                gtk_label_set_use_markup(GTK_LABEL(labelw), TRUE);
337
337
#if GTK_CHECK_VERSION(3,0,0)
338
 
                gtk_widget_set_halign(GTK_WIDGET(labelw), GTK_ALIGN_START);
339
 
                gtk_widget_set_valign(GTK_WIDGET(labelw), GTK_ALIGN_CENTER);
 
338
                gtk_label_set_xalign (labelw, 0);
 
339
                gtk_label_set_yalign (labelw, 0.5);
340
340
#else
341
341
                gtk_misc_set_alignment(GTK_MISC(labelw), 0.0, 0.5);
342
342
#endif