aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-12-04 10:57:49 +0000
committerTarmac <Unknown>2012-12-04 10:57:49 +0000
commitdfdac976160841e43f199afeb252276564726144 (patch)
treebc832a74e4c01c38c5d7dce7dc89cf77ec52513d /src
parent29d7864bfa446d80b9fc3e2cd62ca4007f58307e (diff)
parent0e126bb708f9381819e01debdcbdfd508aa47d2d (diff)
downloadayatana-indicator-messages-dfdac976160841e43f199afeb252276564726144.tar.gz
ayatana-indicator-messages-dfdac976160841e43f199afeb252276564726144.tar.bz2
ayatana-indicator-messages-dfdac976160841e43f199afeb252276564726144.zip
Reverse order of messages
Newest messages should show up on top. The menu is still sorted by the time messages were added, not by the time property of MessagingMenuMessage. Approved by Olivier Tilloy.
Diffstat (limited to 'src')
-rw-r--r--src/im-phone-menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/im-phone-menu.c b/src/im-phone-menu.c
index 6e511ac..ed28023 100644
--- a/src/im-phone-menu.c
+++ b/src/im-phone-menu.c
@@ -183,7 +183,7 @@ im_phone_menu_add_message (ImPhoneMenu *menu,
if (app_icon)
g_menu_item_set_attribute (item, "x-canonical-app-icon", "s", app_icon);
- g_menu_append_item (menu->message_section, item);
+ g_menu_prepend_item (menu->message_section, item);
g_free (action_name);
g_object_unref (item);
@@ -228,7 +228,7 @@ im_phone_menu_add_source (ImPhoneMenu *menu,
if (iconstr)
g_menu_item_set_attribute (item, "x-canonical-icon", "s", iconstr);
- g_menu_append_item (menu->source_section, item);
+ g_menu_prepend_item (menu->source_section, item);
g_free (action_name);
g_object_unref (item);