From ee5591ab8403f97732789776bf56b3b444ffcd86 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Tue, 21 Aug 2001 16:00:41 +0000 Subject: Rename to fbui_real_sensitize_items. Now we queue a change and set up a 2001-08-21 Peter Williams * 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 --- mail/folder-browser.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mail/folder-browser.c') 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); -- cgit