From ae481043a0dae62a47f1164941ab1bfcc8d925f5 Mon Sep 17 00:00:00 2001 From: Parthasarathi Susarla Date: Thu, 28 Apr 2005 14:21:27 +0000 Subject: remove a call to refresh folder from here call mail_refresh_folder here 2005-04-28 Parthasarathi Susarla * em-folder-view.c (emfv_set_folder): remove a call to refresh folder from here * em-folder-browser.c (emfb_set_folder): call mail_refresh_folder here svn path=/trunk/; revision=29243 --- mail/ChangeLog | 7 +++++++ mail/em-folder-browser.c | 3 +++ mail/em-folder-view.c | 5 ++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 15e20cb515..eaa5d76951 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2005-04-28 Parthasarathi Susarla + + * em-folder-view.c (emfv_set_folder): remove a call to + refresh folder from here + * em-folder-browser.c (emfb_set_folder): call + mail_refresh_folder here + 2005-04-28 Not Zed * message-list.c: add some message list loading/profiling points, diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c index c0b9d92529..582546facb 100644 --- a/mail/em-folder-browser.c +++ b/mail/em-folder-browser.c @@ -940,6 +940,9 @@ emfb_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri) char *sstate; int state; GConfClient *gconf = mail_config_get_gconf_client(); + + camel_object_ref(folder); + mail_refresh_folder(folder, NULL, NULL); emfb->priv->folder_changed_id = camel_object_hook_event(folder, "folder_changed", (CamelObjectEventHookFunc)emfb_folder_changed, emfb); diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index a0431f65b6..2faa47a7fe 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -602,9 +602,8 @@ emfv_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri) emfv->folder = folder; if (folder) { - camel_object_ref(folder); - mail_refresh_folder(folder, NULL, NULL); - /* We need to set this up to get the right view options for the message-list, even if we're not showing it */ + /* We need to set this up to get the right view options for the message-list, + * even if we're not showing it */ emfv_setup_view_instance(emfv); } -- cgit v1.2.3