aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-30 06:41:35 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-30 06:41:35 +0800
commit60dcd520578c64ae21afbb9a984e15792b3cd27d (patch)
tree80e38639b0b7203a6764e2c96dbd6e3e4c542e5c /mail/folder-browser.c
parent9420ec95745a249279df14edcecf316f61ee0a54 (diff)
downloadgsoc2013-evolution-60dcd520578c64ae21afbb9a984e15792b3cd27d.tar
gsoc2013-evolution-60dcd520578c64ae21afbb9a984e15792b3cd27d.tar.gz
gsoc2013-evolution-60dcd520578c64ae21afbb9a984e15792b3cd27d.tar.bz2
gsoc2013-evolution-60dcd520578c64ae21afbb9a984e15792b3cd27d.tar.lz
gsoc2013-evolution-60dcd520578c64ae21afbb9a984e15792b3cd27d.tar.xz
gsoc2013-evolution-60dcd520578c64ae21afbb9a984e15792b3cd27d.tar.zst
gsoc2013-evolution-60dcd520578c64ae21afbb9a984e15792b3cd27d.zip
Fixed a warning by #if 0ing out this function.
2001-10-29 Christopher James Lahey <clahey@ximian.com> * e-searching-tokenizer.c (search_info_set_match_size_increase): Fixed a warning by #if 0ing out this function. * folder-browser.c, folder-browser.h (on_selection_changed): Update status bar in an idle call. Fixes Ximian bug #13929. * mail-folder-cache.c (folder_renamed, store_folder_renamed): Fixed some warnings here. svn path=/trunk/; revision=14372
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index fcd54e528a..ceb8532978 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -808,9 +808,34 @@ update_status_bar(FolderBrowser *fb)
GNOME_Evolution_ShellView_setFolderBarLabel(fb->shell_view, work->str, &ev);
CORBA_exception_free(&ev);
+ if (fb->update_status_bar_idle_id != 0) {
+ g_source_remove (fb->update_status_bar_idle_id);
+ fb->update_status_bar_idle_id = 0;
+ }
+
g_string_free(work, TRUE);
}
+static gboolean
+update_status_bar_idle_cb(gpointer data)
+{
+ FolderBrowser *fb = data;
+ if (!GTK_OBJECT_DESTROYED (fb))
+ update_status_bar (fb);
+ fb->update_status_bar_idle_id = 0;
+ gtk_object_unref (GTK_OBJECT (fb));
+ return FALSE;
+}
+
+static void
+update_status_bar_idle(FolderBrowser *fb)
+{
+ if (fb->update_status_bar_idle_id == 0) {
+ gtk_object_ref (GTK_OBJECT (fb));
+ fb->update_status_bar_idle_id = g_idle_add (update_status_bar_idle_cb, fb);
+ }
+}
+
static void main_folder_changed(CamelObject *o, void *event_data, void *data)
{
FolderBrowser *fb = data;
@@ -1768,7 +1793,7 @@ on_selection_changed (GtkObject *obj, gpointer user_data)
folder_browser_ui_set_selection_state (fb, state);
- update_status_bar(fb);
+ update_status_bar_idle(fb);
}
static void