gossip r2756 - in trunk: . src
- From: mr svn gnome org
- To: svn-commits-list gnome org
- Subject: gossip r2756 - in trunk: . src
- Date: Mon, 3 Mar 2008 20:07:31 +0000 (GMT)
Author: mr
Date: Mon Mar 3 20:07:31 2008
New Revision: 2756
URL: http://svn.gnome.org/viewvc/gossip?rev=2756&view=rev
Log:
Reverse the chatroom list before inserting it to the favourite menu so
it is shown in the right order.
Modified:
trunk/ChangeLog
trunk/src/gossip-app.c
Modified: trunk/src/gossip-app.c
==============================================================================
--- trunk/src/gossip-app.c (original)
+++ trunk/src/gossip-app.c Mon Mar 3 20:07:31 2008
@@ -1320,6 +1320,13 @@
priv->room_menu =
gtk_menu_item_get_submenu (GTK_MENU_ITEM (priv->room));
+ /* Reverse the list here because we want to make sure that we
+ * always insert the next item in at position 3 so we start at
+ * the right place. This of course means that new items are
+ * put in before the last one.
+ */
+ chatrooms = g_list_reverse (chatrooms);
+
for (l = chatrooms; l; l = l->next) {
if (app_favorite_chatroom_menu_add (l->data)) {
found = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]