aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-22 11:42:05 -0500
committerTed Gould <ted@gould.cx>2011-07-22 11:42:05 -0500
commit53fe1d842bfd9c96af10ba2c6e3e83f357f48a86 (patch)
treed02d5b21918314ac0db2c263530b7b997132e2e6
parentacbcc6281bd71cc487c22f6a4565827563631661 (diff)
parent6dcb30531043cb812ebc4d80d43658bf336b4050 (diff)
downloadayatana-indicator-messages-53fe1d842bfd9c96af10ba2c6e3e83f357f48a86.tar.gz
ayatana-indicator-messages-53fe1d842bfd9c96af10ba2c6e3e83f357f48a86.tar.bz2
ayatana-indicator-messages-53fe1d842bfd9c96af10ba2c6e3e83f357f48a86.zip
Make sure to insert in the right locations
-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++;
}