aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-06-26 00:49:14 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-06-26 00:49:14 +0200
commit4dc6e54dd0a5ebba4eb4e26d09ecfde8c9a9580b (patch)
tree111ef742eebdc592da95fcfa65a9442db7f5b0ce
parentbe44bb8644730b598fdc1990ab81c1f067dc2353 (diff)
downloadayatana-indicator-messages-4dc6e54dd0a5ebba4eb4e26d09ecfde8c9a9580b.tar.gz
ayatana-indicator-messages-4dc6e54dd0a5ebba4eb4e26d09ecfde8c9a9580b.tar.bz2
ayatana-indicator-messages-4dc6e54dd0a5ebba4eb4e26d09ecfde8c9a9580b.zip
app-section.c: get rid of unnecessary local item
-rw-r--r--src/app-section.c5
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);
}