diff options
author | Lucian Langa <lucilanga@gnome.org> | 2009-05-29 04:47:03 +0800 |
---|---|---|
committer | Lucian Langa <lucilanga@gnome.org> | 2009-05-29 04:47:03 +0800 |
commit | 77fe50d5c183dee35845c23586d74d27402c17da (patch) | |
tree | 61261808e7144a8b1511174995f5b4493dd135e2 /mail | |
parent | b7d79d3a852746058de93dd0af9b2c13969d55c0 (diff) | |
download | gsoc2013-evolution-77fe50d5c183dee35845c23586d74d27402c17da.tar.gz gsoc2013-evolution-77fe50d5c183dee35845c23586d74d27402c17da.tar.zst gsoc2013-evolution-77fe50d5c183dee35845c23586d74d27402c17da.zip |
Bug 583446 – refresh folder hook
Diffstat (limited to 'mail')
-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 |