aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-17 16:43:04 -0600
committerTed Gould <ted@gould.cx>2010-02-17 16:43:04 -0600
commit09c3405e449b936d3fce4fd85618dd4e60aaa77c (patch)
tree863b7d05a43a0cbe5ccce7ec772d9b305cba18c1
parentaa1f03448025d8a0be2a84db6a07430f9b26e941 (diff)
downloadayatana-indicator-messages-09c3405e449b936d3fce4fd85618dd4e60aaa77c.tar.gz
ayatana-indicator-messages-09c3405e449b936d3fce4fd85618dd4e60aaa77c.tar.bz2
ayatana-indicator-messages-09c3405e449b936d3fce4fd85618dd4e60aaa77c.zip
Moving the shortcuts along with the app item
-rw-r--r--src/messages-service.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 6b4f7c6..c1af270 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -882,6 +882,15 @@ resort_menu (DbusmenuMenuitem * menushell)
g_debug("\tMoving app %s to position %d", INDICATE_LISTENER_SERVER_DBUS_NAME(si->server), position);
dbusmenu_menuitem_child_reorder(DBUSMENU_MENUITEM(menushell), DBUSMENU_MENUITEM(si->menuitem), position);
position++;
+
+ /* Inserting the shortcuts from the launcher */
+ GList * shortcuts = app_menu_item_get_items(si->menuitem);
+ while (shortcuts != NULL) {
+ g_debug("\t\tMoving shortcut to position %d", position);
+ dbusmenu_menuitem_child_reorder(DBUSMENU_MENUITEM(menushell), DBUSMENU_MENUITEM(shortcuts->data), position);
+ position++;
+ shortcuts = g_list_next(shortcuts);
+ }
}
/* Putting all the indicators that are related to this application