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/em-folder-tree.c | |
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/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |