aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-07-16 22:55:19 +0800
committerPeter Williams <peterw@src.gnome.org>2001-07-16 22:55:19 +0800
commite215bcef02af68a9520875cd7cfaa3a63ae4345c (patch)
tree50620770470b69a7d43adac104f850d6f8bdf456
parent91c5bd9e64837351aef5511fbad894f730de7e40 (diff)
downloadgsoc2013-evolution-e215bcef02af68a9520875cd7cfaa3a63ae4345c.tar
gsoc2013-evolution-e215bcef02af68a9520875cd7cfaa3a63ae4345c.tar.gz
gsoc2013-evolution-e215bcef02af68a9520875cd7cfaa3a63ae4345c.tar.bz2
gsoc2013-evolution-e215bcef02af68a9520875cd7cfaa3a63ae4345c.tar.lz
gsoc2013-evolution-e215bcef02af68a9520875cd7cfaa3a63ae4345c.tar.xz
gsoc2013-evolution-e215bcef02af68a9520875cd7cfaa3a63ae4345c.tar.zst
gsoc2013-evolution-e215bcef02af68a9520875cd7cfaa3a63ae4345c.zip
DUH. No need to update every folder if we set the folder browser to NULL.
2001-07-16 Peter Williams <peterw@ximian.com> * mail-folder-cache.c (mail_folder_cache_set_folder_browser): DUH. No need to update every folder if we set the folder browser to NULL. svn path=/trunk/; revision=11128
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-folder-cache.c10
2 files changed, 11 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e68eb3472d..a816a8843a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-16 Peter Williams <peterw@ximian.com>
+
+ * mail-folder-cache.c (mail_folder_cache_set_folder_browser): DUH.
+ No need to update every folder if we set the folder browser to
+ NULL.
+
2001-07-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Call
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c
index 0558c43822..8e66866e7a 100644
--- a/mail/mail-folder-cache.c
+++ b/mail/mail-folder-cache.c
@@ -785,6 +785,11 @@ mail_folder_cache_set_folder_browser (FolderBrowser *fb)
if (fb) {
d(g_message("Reffing new browser %p", fb));
gtk_object_ref (GTK_OBJECT (fb));
+
+ LOCK_FOLDERS ();
+ d(g_message("Checking folders for this fb"));
+ g_hash_table_foreach (folders, check_for_fb_match, fb);
+ UNLOCK_FOLDERS ();
} else if (shell_view != CORBA_OBJECT_NIL) {
CORBA_Environment ev;
@@ -797,11 +802,6 @@ mail_folder_cache_set_folder_browser (FolderBrowser *fb)
bonobo_exception_get_text (&ev));
CORBA_exception_free (&ev);
}
-
- LOCK_FOLDERS ();
- d(g_message("Checking folders for this fb"));
- g_hash_table_foreach (folders, check_for_fb_match, fb);
- UNLOCK_FOLDERS ();
}
#if d(!)0