aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorParthasarathi Susarla <sparthasarathi@novell.com>2005-04-28 22:21:27 +0800
committerParthasarathi Susarla <saps@src.gnome.org>2005-04-28 22:21:27 +0800
commitae481043a0dae62a47f1164941ab1bfcc8d925f5 (patch)
tree7b685a9272974cf5cf97092f11ccbd86cea47f60 /mail
parenta16dd349d9b7b41aa23685e49abe3660bdbd8499 (diff)
downloadgsoc2013-evolution-ae481043a0dae62a47f1164941ab1bfcc8d925f5.tar.gz
gsoc2013-evolution-ae481043a0dae62a47f1164941ab1bfcc8d925f5.tar.zst
gsoc2013-evolution-ae481043a0dae62a47f1164941ab1bfcc8d925f5.zip
remove a call to refresh folder from here call mail_refresh_folder here
2005-04-28 Parthasarathi Susarla <sparthasarathi@novell.com> * 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
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-folder-browser.c3
-rw-r--r--mail/em-folder-view.c5
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 <sparthasarathi@novell.com>
+
+ * 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 <NotZed@Ximian.com>
* 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);
}