diff options
-rw-r--r-- | mail/em-folder-browser.c | 6 | ||||
-rw-r--r-- | mail/em-folder-tree.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c index b0481d46d5..3c2d223307 100644 --- a/mail/em-folder-browser.c +++ b/mail/em-folder-browser.c @@ -1596,8 +1596,12 @@ emfb_folder_refresh(BonoboUIComponent *uid, gpointer data, const gchar *path) EMFolderTree *tree = g_object_get_data (G_OBJECT (emfb), "foldertree"); CamelFolder *folder; - if ((folder = em_folder_tree_get_selected_folder (tree)) != NULL) + if ((folder = em_folder_tree_get_selected_folder (tree)) != NULL) { + EMEvent *e = em_event_peek(); + EMEventTargetFolder *t = em_event_target_new_folder(e, folder->full_name, 0); + e_event_emit((EEvent *)e, "folder.refresh", (EEventTarget *)t); mail_refresh_folder(folder, NULL, NULL); + } } diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index b62702bbd7..a7b56e7fcb 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -1982,8 +1982,12 @@ emft_popup_refresh_folder (EPopup *ep, EPopupItem *pitem, gpointer data) EMFolderTree *emft = data; CamelFolder *folder; - if ((folder = em_folder_tree_get_selected_folder (emft)) != NULL) + if ((folder = em_folder_tree_get_selected_folder (emft)) != NULL) { + EMEvent *e = em_event_peek(); + EMEventTargetFolder *t = em_event_target_new_folder(e, folder->full_name, 0); + e_event_emit((EEvent *)e, "folder.refresh", (EEventTarget *)t); mail_refresh_folder(folder, NULL, NULL); + } } static void |