aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-04-14 18:33:38 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-04-14 18:33:38 +0800
commit783645304dffa63ba978ceec1874f6e9cd7f419a (patch)
tree3582bc79db91d67c6f4aa4491daa45a2a8d725ee /mail/em-folder-browser.c
parent3cf228772512334661adb91a1a709b6a2962651f (diff)
downloadgsoc2013-evolution-783645304dffa63ba978ceec1874f6e9cd7f419a.tar.gz
gsoc2013-evolution-783645304dffa63ba978ceec1874f6e9cd7f419a.tar.zst
gsoc2013-evolution-783645304dffa63ba978ceec1874f6e9cd7f419a.zip
ugh, use the queued thread to get the folder, otherwise we can get folders
2004-04-14 Not Zed <NotZed@Ximian.com> * em-folder-view.c (emfv_set_folder_uri): ugh, use the queued thread to get the folder, otherwise we can get folders set on the display out of order. * message-list.c (message_list_set_search): if we set this while frozen, save the search elsewhere. (message_list_thaw): if we had a frozen-time search, use it when we regenerate. * em-folder-browser.c (emfb_set_folder): freeze/thaw the messagelist around changes so we don't have multiple updates fire off changing folders. (emfb_activate): remove an unused variable i never used. * message-list.c (message_list_freeze, message_list_thaw): lock some updates to the ui, so you can do things like set folder and search atomically. (message_list_set_threaded, message_list_set_hidedeleted) (message_list_set_search, message_list_hide_uids) (message_list_hide_clear, message_list_set_folder): dont refresh the list if we're frozen. svn path=/trunk/; revision=25458
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r--mail/em-folder-browser.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index 38eece3e5d..3da05dd3da 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -916,6 +916,8 @@ emfb_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri)
EMFolderBrowser *emfb = (EMFolderBrowser *) emfv;
struct _EMFolderBrowserPrivate *p = emfb->priv;
+ message_list_freeze(emfv->list);
+
emfb_parent->set_folder(emfv, folder, uri);
/* This is required since we get activated the first time
@@ -968,6 +970,8 @@ emfb_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri)
if (emfv->uic)
emfb_create_view_menus (emfb, emfv->uic);
}
+
+ message_list_thaw(emfv->list);
}
/* TODO: All this mess should sit directly on MessageList, but it would
@@ -1012,7 +1016,7 @@ emfb_activate(EMFolderView *emfv, BonoboUIComponent *uic, int act)
if (act) {
GConfClient *gconf;
- gboolean state, newstate;
+ gboolean state;
char *sstate;
gconf = mail_config_get_gconf_client ();