aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-06-25 16:40:26 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-06-25 16:40:26 +0200
commit787dff35a9a9e0c491e960754b8bbdeb46ae800c (patch)
treed7c5afa47e8f362fb526ebc0343430177559d8c1 /src/messages-service.c
parent40c73ac73cb2e45136c6820086f901ea1cf72874 (diff)
downloadayatana-indicator-messages-787dff35a9a9e0c491e960754b8bbdeb46ae800c.tar.gz
ayatana-indicator-messages-787dff35a9a9e0c491e960754b8bbdeb46ae800c.tar.bz2
ayatana-indicator-messages-787dff35a9a9e0c491e960754b8bbdeb46ae800c.zip
Put launcher and shortcut menu items into the same gmenu section
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index e302219..805e684 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -97,8 +97,6 @@ add_application (const gchar *desktop_id)
section = g_hash_table_lookup (applications, id);
if (!section) {
- GMenuItem *item;
-
section = app_section_new(appinfo);
g_hash_table_insert (applications, g_strdup (id), section);
@@ -106,10 +104,8 @@ add_application (const gchar *desktop_id)
g_signal_connect (section, "notify::actions",
G_CALLBACK (actions_changed), NULL);
- item = app_section_create_menu_item (section);
/* TODO insert it at the right position (alphabetically by application name) */
- g_menu_insert_item (menu, 2, item);
- g_object_unref (item);
+ g_menu_insert_section (menu, 2, NULL, app_section_get_menu (section));
}
g_free (id);