Patch: update the message counts in list store on delayed poke status



	Hi,

	This is a small change over the delayed refresh development. ON running
the delayed refresh poke status calls, we update the list store message
counts, to get proper feedback of the message count changes.

Changelog entry:
* libtinymailui-gtk/tny-gtk-folder-list-store.c:
  update message counts on running delayed poke_status.


-- 
José Dapena Paz <jdapena igalia com>
Igalia
diff --git a/ChangeLog b/ChangeLog
index 0613c98..8610daa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-30  Jose Dapena Paz  <jdapena igalia com>
+
+	* libtinymailui-gtk/tny-gtk-folder-list-store.c:
+	update message counts on running delayed poke_status.
+
 2009-06-29  Jose Dapena Paz  <jdapena igalia com>
 
 	* libtinymailui-gtk/tny-gtk-folder-list-store.c:
diff --git a/libtinymailui-gtk/tny-gtk-folder-list-store.c b/libtinymailui-gtk/tny-gtk-folder-list-store.c
index 12719dc..747b31b 100644
--- a/libtinymailui-gtk/tny-gtk-folder-list-store.c
+++ b/libtinymailui-gtk/tny-gtk-folder-list-store.c
@@ -397,9 +397,17 @@ recurse_folders_async_cb (TnyFolderStore *store,
 
 			if (folder && 
 			    (!(self->flags & TNY_GTK_FOLDER_LIST_STORE_FLAG_DELAYED_REFRESH)||
-			     do_poke_status))
+			     do_poke_status)) {
+
 				tny_folder_poke_status (TNY_FOLDER (folder));
 
+				gtk_list_store_set (GTK_LIST_STORE (model), iter,
+						    TNY_GTK_FOLDER_LIST_STORE_UNREAD_COLUMN, 
+						    tny_folder_get_unread_count (folder),
+						    TNY_GTK_FOLDER_LIST_STORE_ALL_COLUMN, 
+						    tny_folder_get_all_count (folder), -1);
+			}
+
 			if (mark_for_removal) {
 				g_object_unref (mark_for_removal);
 				mark_for_removal = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]