From 4e68daeee7fe848ce95157c18f1499335b0888fc Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 20 Aug 2012 23:44:39 +0200 Subject: 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. --- src/messages-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/messages-service.c') 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); } -- cgit v1.2.3