reverse last commit but still reverse the list
authorColin Leroy <colin@colino.net>
Tue, 12 Nov 2002 17:20:01 +0000 (17:20 +0000)
committerColin Leroy <colin@colino.net>
Tue, 12 Nov 2002 17:20:01 +0000 (17:20 +0000)
ChangeLog.claws
configure.in
src/msgcache.c

index e1e1745..0cdf6e0 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-12 [colin]     0.8.5claws134
+
+       * src/msgcache.c
+               Reverse last commit which had performance 
+               problems, but still reverse the list
+
 2002-11-12 [colin]     0.8.5claws133
 
        * src/msgcache.c
index 57d5ca3..39fb474 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws133
+EXTRA_VERSION=claws134
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 00a4c72..94a6b9b 100644 (file)
@@ -449,7 +449,7 @@ static void msgcache_get_msg_list_func(gpointer key, gpointer value, gpointer us
        GSList **listptr = user_data;
        MsgInfo *msginfo = value;
 
-       *listptr = g_slist_append(*listptr, procmsg_msginfo_new_ref(msginfo));
+       *listptr = g_slist_prepend(*listptr, procmsg_msginfo_new_ref(msginfo));
 }
 
 GSList *msgcache_get_msg_list(MsgCache *cache)
@@ -460,6 +460,8 @@ GSList *msgcache_get_msg_list(MsgCache *cache)
 
        g_hash_table_foreach((GHashTable *)cache->msgnum_table, msgcache_get_msg_list_func, (gpointer)&msg_list);       
        cache->last_access = time(NULL);
+       
+       msg_list = g_slist_reverse(msg_list);
 
        return msg_list;
 }