aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-08-22 00:00:41 +0800
committerPeter Williams <peterw@src.gnome.org>2001-08-22 00:00:41 +0800
commitee5591ab8403f97732789776bf56b3b444ffcd86 (patch)
tree4a4e2aeeb914a83337c4dfa739e2d4b460d8fd4c /mail/folder-browser.c
parent6ddfda7a024bf55e0573a17449a51c02c157c4cd (diff)
downloadgsoc2013-evolution-ee5591ab8403f97732789776bf56b3b444ffcd86.tar.gz
gsoc2013-evolution-ee5591ab8403f97732789776bf56b3b444ffcd86.tar.zst
gsoc2013-evolution-ee5591ab8403f97732789776bf56b3b444ffcd86.zip
Rename to fbui_real_sensitize_items. Now we queue a change and set up a
2001-08-21 Peter Williams <peterw@ximian.com> * folder-browser-ui.c (fbui_sensitize_items): Rename to fbui_real_sensitize_items. Now we queue a change and set up a timeout, making sure weed out redundant changes, fixing flicker. (fbui_sensitize_timeout): New function. The timeout. (fbui_real_sensitize_items): Semi-new function. Rename of old fbui_sensitize_items. (folder_browser_ui_set_selection_state): Pass the FB instead of only the UIC to sensitize_items. (folder_browser_ui_message_loaded): Same. * folder-browser.c (folder_browser_destroy): Kill the new timeout if it is registered. * folder-browser.h: Add some members to FolderBrowser for keeping track of the queue of changes. svn path=/trunk/; revision=12343
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 269f59b9a6..bc0dd26175 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -117,6 +117,9 @@ folder_browser_destroy (GtkObject *object)
if (folder_browser->search_full)
gtk_object_unref (GTK_OBJECT (folder_browser->search_full));
+ if (folder_browser->sensitize_timeout_id)
+ g_source_remove (folder_browser->sensitize_timeout_id);
+
if (folder_browser->shell != CORBA_OBJECT_NIL)
CORBA_Object_release (folder_browser->shell, &ev);