aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-08-20 23:44:39 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-08-20 23:44:39 +0200
commit4e68daeee7fe848ce95157c18f1499335b0888fc (patch)
tree7818840a363addb5fac6e5350da578bfb90b7bbd
parent6e38f791c64476215ae68a7a5beabe44dde20131 (diff)
downloadayatana-indicator-messages-4e68daeee7fe848ce95157c18f1499335b0888fc.tar.gz
ayatana-indicator-messages-4e68daeee7fe848ce95157c18f1499335b0888fc.tar.bz2
ayatana-indicator-messages-4e68daeee7fe848ce95157c18f1499335b0888fc.zip
Insert new app items right before the "Clear" item
This still isn't as specified by design (should be alphabetically), but at least "Clear" is below the app items now.
-rw-r--r--src/messages-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index ccd2eba..aade829 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -168,7 +168,7 @@ add_application (const gchar *desktop_id)
/* TODO insert it at the right position (alphabetically by application name) */
menuitem = g_menu_item_new_section (NULL, app_section_get_menu (section));
g_menu_item_set_attribute (menuitem, "action-namespace", "s", id);
- g_menu_insert_item (menu, 2, menuitem);
+ g_menu_insert_item (menu, g_menu_model_get_n_items (G_MENU_MODEL (menu)) -1, menuitem);
g_object_unref (menuitem);
}