From 4dc6e54dd0a5ebba4eb4e26d09ecfde8c9a9580b Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Tue, 26 Jun 2012 00:49:14 +0200 Subject: app-section.c: get rid of unnecessary local item --- src/app-section.c | 5 +---- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.3