From 09c3405e449b936d3fce4fd85618dd4e60aaa77c Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 17 Feb 2010 16:43:04 -0600 Subject: Moving the shortcuts along with the app item --- src/messages-service.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 -- cgit v1.2.3