2006-09-16 [colin] 2.4.0cvs195
authorColin Leroy <colin@colino.net>
Sat, 16 Sep 2006 16:34:35 +0000 (16:34 +0000)
committerColin Leroy <colin@colino.net>
Sat, 16 Sep 2006 16:34:35 +0000 (16:34 +0000)
* src/folderview.c
Fix "real-time" sorting by freezing/thawing

ChangeLog
PATCHSETS
configure.ac
src/folderview.c

index c1dde9d9abcaf7765a4fecc80c87d4b3eea871aa..b65925290ecb7c3c4afb3eabda84db1af6a8fc59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-16 [colin]     2.4.0cvs195
+
+       * src/folderview.c
+               Fix "real-time" sorting by freezing/thawing
+
 2006-09-16 [colin]     2.4.0cvs194
 
        * manual/faq.xml
index a149fd78cc442389f52aa9a90c08d6e3cf83ade1..366cefc8a9c0dda086ea15c2387c1111f0a2f440 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.115.2.103 -r 1.115.2.104 src/main.c;  ) > 2.4.0cvs192.patchset
 ( cvs diff -u -r 1.1.2.33 -r 1.1.2.34 src/wizard.c;  ) > 2.4.0cvs193.patchset
 ( cvs diff -u -r 1.1.2.11 -r 1.1.2.12 manual/faq.xml;  ) > 2.4.0cvs194.patchset
+( cvs diff -u -r 1.207.2.120 -r 1.207.2.121 src/folderview.c;  ) > 2.4.0cvs195.patchset
index 5323eb435dfe46abb39b298d87b9bc2431ca357f..50b4562cf0630ba6260c1aaaec0cf8a7307fb1ad 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=4
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=194
+EXTRA_VERSION=195
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index f75828655b3c6344625b7bd636c68f264175a42b..10aac2ff91b4a4f2f4740abe24a826736c8a3007 100644 (file)
@@ -1799,15 +1799,18 @@ static void folderview_sort_folders(FolderView *folderview, GtkCTreeNode *root,
        GtkCTree *ctree = GTK_CTREE(folderview->ctree);
        GtkCTreeNode *prev = NULL;
 
+       gtk_clist_freeze(GTK_CLIST(ctree));
        gtk_sctree_sort_recursive(ctree, root);
-
-       if (root && GTK_CTREE_ROW(root)->parent) return;
-
+       if (root && GTK_CTREE_ROW(root)->parent) {
+               gtk_clist_thaw(GTK_CLIST(ctree));
+               return;
+       }
        set_special_folder(ctree, folder->inbox, root, &prev);
        set_special_folder(ctree, folder->outbox, root, &prev);
        set_special_folder(ctree, folder->draft, root, &prev);
        set_special_folder(ctree, folder->queue, root, &prev);
        set_special_folder(ctree, folder->trash, root, &prev);
+       gtk_clist_thaw(GTK_CLIST(ctree));
 }
 
 static void folderview_append_folder(FolderView *folderview, Folder *folder)