From 6dcb30531043cb812ebc4d80d43658bf336b4050 Mon Sep 17 00:00:00 2001 From: Chris Coulson Date: Fri, 22 Jul 2011 10:32:23 +0100 Subject: Make all indicator entries appear after an applications shortcuts Currently, indicator_added and resort_menu have different ideas of where they should go. indicator_added puts them before shortcuts, whereas resort_menu will move the shortcuts before them. This leads to a situation where shortcut entries end up inbetween an applications indicator entries (and this happens a lot with Thunderbird) --- src/messages-service.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/messages-service.c b/src/messages-service.c index 63549e3..c891f88 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -799,6 +799,8 @@ menushell_foreach_cb (DbusmenuMenuitem * data_mi, gpointer data_ms) { AppMenuItem * appmenu = APP_MENU_ITEM(data_mi); if (!g_strcmp0(INDICATE_LISTENER_SERVER_DBUS_NAME((IndicateListenerServer*)msl->server), INDICATE_LISTENER_SERVER_DBUS_NAME(app_menu_item_get_server(appmenu)))) { msl->found = TRUE; + /* Return a position at the end of our shortcuts */ + msl->position += g_list_length(app_menu_item_get_items(appmenu)); } else { msl->position++; } -- cgit v1.2.3