~attente/unity-gtk-module/blacklist-anjuta

« back to all changes in this revision

Viewing changes to lib/unity-gtk-menu-item.c

  • Committer: CI bot
  • Author(s): William Hua
  • Date: 2014-04-03 17:12:41 UTC
  • mfrom: (324.1.2 eclipse-accelerators)
  • Revision ID: ps-jenkins@lists.canonical.com-20140403171241-z10l7xb8hap9gu0t
Forward original accelerator text for Eclipse, Inkscape, Emacs. Fixes: 1208019

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    }
58
58
}
59
59
 
60
 
static GtkLabel *
 
60
GtkLabel *
61
61
gtk_menu_item_get_nth_label (GtkMenuItem *menu_item,
62
62
                             guint        index)
63
63
{
368
368
}
369
369
 
370
370
static void
 
371
unity_gtk_menu_item_handle_accel_closures_changed (GtkWidget *widget,
 
372
                                                   gpointer   user_data)
 
373
{
 
374
  UnityGtkMenuItem *item;
 
375
  UnityGtkMenuShell *parent_shell;
 
376
 
 
377
  g_return_if_fail (UNITY_GTK_IS_MENU_ITEM (user_data));
 
378
 
 
379
  item = UNITY_GTK_MENU_ITEM (user_data);
 
380
  parent_shell = item->parent_shell;
 
381
 
 
382
  g_return_if_fail (parent_shell != NULL);
 
383
 
 
384
  unity_gtk_menu_shell_handle_item_notify (parent_shell, item, "accel-path");
 
385
}
 
386
 
 
387
static void
371
388
unity_gtk_menu_item_set_menu_item (UnityGtkMenuItem *item,
372
389
                                   GtkMenuItem      *menu_item)
373
390
{
410
427
          if (label != NULL)
411
428
            g_signal_connect (label, "notify", G_CALLBACK (unity_gtk_menu_item_handle_label_notify), item);
412
429
 
 
430
          g_signal_connect (menu_item, "accel-closures-changed", G_CALLBACK (unity_gtk_menu_item_handle_accel_closures_changed), item);
 
431
 
413
432
          /* LP: #1208019 */
414
433
          if (gtk_menu_item_get_submenu (menu_item) != NULL)
415
434
            g_signal_emit_by_name (gtk_menu_item_get_submenu (menu_item), "show");