[PATCH] Stop properly delayed refresh mode when timeout finishes
- From: Jose Dapena Paz <jdapena igalia com>
- Subject: [PATCH] Stop properly delayed refresh mode when timeout finishes
- Date: Mon, 22 Jun 2009 13:02:36 +0200
* libtinymailui-gtk/tny-gtk-folder-list-store.c: stop delayed
refresh once timeout is gone (avoiding continuous retrieval
issue with delayed refresh).
---
ChangeLog | 6 ++++++
libtinymailui-gtk/tny-gtk-folder-list-store.c | 3 +++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a38ad18..3532ea2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-22 Jose Dapena Paz <jdapena igalia com>
+
+ * libtinymailui-gtk/tny-gtk-folder-list-store.c: stop delayed
+ refresh once timeout is gone (avoiding continuous retrieval
+ issue with delayed refresh).
+
2009-06-22 Sergio Villar Senin <svillar igalia com>
* libtinymail-camel/tny-camel-mime-part.c
diff --git a/libtinymailui-gtk/tny-gtk-folder-list-store.c b/libtinymailui-gtk/tny-gtk-folder-list-store.c
index 6d0069a..3cb8b00 100644
--- a/libtinymailui-gtk/tny-gtk-folder-list-store.c
+++ b/libtinymailui-gtk/tny-gtk-folder-list-store.c
@@ -108,6 +108,9 @@ delayed_refresh_timeout_handler (TnyGtkFolderListStore *self)
GList *node;
self->delayed_refresh_timeout_id = 0;
+ self->flags &= (~TNY_GTK_FOLDER_LIST_STORE_FLAG_DELAYED_REFRESH);
+ self->flags &= (~TNY_GTK_FOLDER_LIST_STORE_FLAG_NO_REFRESH);
+
g_mutex_lock (self->iterator_lock);
for (node = self->first; node != NULL; node = g_list_next (node)) {
if (TNY_IS_ACCOUNT (node->data)) {
--
1.6.0.4
--=-RHrdqRwYz5ov3mqccjZR--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]