aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-04-15 15:31:53 -0500
committerTed Gould <ted@gould.cx>2010-04-15 15:31:53 -0500
commit497db3688f51985369e47f72ef283c4c085637d6 (patch)
tree88ff3b79c23b3d99812c2979447b3c703a86d3d3 /src
parent7c83491f5a7691f6a768670febfa9b4c9f428c2d (diff)
downloadayatana-indicator-messages-497db3688f51985369e47f72ef283c4c085637d6.tar.gz
ayatana-indicator-messages-497db3688f51985369e47f72ef283c4c085637d6.tar.bz2
ayatana-indicator-messages-497db3688f51985369e47f72ef283c4c085637d6.zip
Killing hte launcher shortcuts on exit as well.
Diffstat (limited to 'src')
-rw-r--r--src/messages-service.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 53532dd..da5b49c 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -1271,6 +1271,14 @@ destroy_launcher (gpointer data)
g_list_free(li->appdiritems);
if (li->menuitem != NULL) {
+ /* If there are shortcuts remove them */
+ GList * shortcuts = launcher_menu_item_get_items(li->menuitem);
+ while (shortcuts != NULL) {
+ dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(shortcuts->data), DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
+ dbusmenu_menuitem_child_delete(DBUSMENU_MENUITEM(data), DBUSMENU_MENUITEM(shortcuts->data));
+ shortcuts = g_list_next(shortcuts);
+ }
+
dbusmenu_menuitem_property_set_bool(DBUSMENU_MENUITEM(li->menuitem), DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
dbusmenu_menuitem_child_delete(root_menuitem, DBUSMENU_MENUITEM(li->menuitem));
g_object_unref(G_OBJECT(li->menuitem));