aboutsummaryrefslogtreecommitdiff
path: root/src/im-phone-menu.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-12-04 10:35:04 +0000
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-12-04 10:35:04 +0000
commit0e126bb708f9381819e01debdcbdfd508aa47d2d (patch)
tree50b90670a7b1c1f5d470cf04f78edec962192fec /src/im-phone-menu.c
parent6d6e00503f578a9eab15232091a5c49e5cf370b5 (diff)
downloadayatana-indicator-messages-0e126bb708f9381819e01debdcbdfd508aa47d2d.tar.gz
ayatana-indicator-messages-0e126bb708f9381819e01debdcbdfd508aa47d2d.tar.bz2
ayatana-indicator-messages-0e126bb708f9381819e01debdcbdfd508aa47d2d.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.
Diffstat (limited to 'src/im-phone-menu.c')
-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);