aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Coulson <chrisccoulson@ubuntu.com>2011-07-22 10:32:23 +0100
committerChris Coulson <chrisccoulson@ubuntu.com>2011-07-22 10:32:23 +0100
commit6dcb30531043cb812ebc4d80d43658bf336b4050 (patch)
treed02d5b21918314ac0db2c263530b7b997132e2e6
parentacbcc6281bd71cc487c22f6a4565827563631661 (diff)
downloadayatana-indicator-messages-6dcb30531043cb812ebc4d80d43658bf336b4050.tar.gz
ayatana-indicator-messages-6dcb30531043cb812ebc4d80d43658bf336b4050.tar.bz2
ayatana-indicator-messages-6dcb30531043cb812ebc4d80d43658bf336b4050.zip
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)
-rw-r--r--src/messages-service.c2
1 files changed, 2 insertions, 0 deletions
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++;
}