diff options
-rw-r--r-- | src/app-section.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/app-section.c b/src/app-section.c index 1662a9f..472fb6c 100644 --- a/src/app-section.c +++ b/src/app-section.c @@ -240,7 +240,6 @@ app_section_set_app_info (AppSection *self, for (i = 0; nicks[i] != NULL; i++) { gchar *name; GSimpleAction *action; - GMenuItem *item; name = indicator_desktop_shortcuts_nick_get_name(priv->ids, nicks[i]); @@ -248,10 +247,8 @@ app_section_set_app_info (AppSection *self, g_signal_connect(action, "activate", G_CALLBACK (nick_activate_cb), self); g_simple_action_group_insert (priv->static_shortcuts, G_ACTION (action)); - item = g_menu_item_new (name, nicks[i]); - g_menu_append_item (priv->menu, item); + g_menu_append (priv->menu, name, nicks[i]); - g_object_unref (item); g_free(name); } |