From 533cd49bc6475ef48ad5eb6a93d0f58450b3c9e8 Mon Sep 17 00:00:00 2001 From: Johnny Jacob Date: Sun, 1 Feb 2009 18:24:45 +0000 Subject: EPLugin : Added new hook point. svn path=/trunk/; revision=37205 --- mail/em-event.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'mail/em-event.c') diff --git a/mail/em-event.c b/mail/em-event.c index 0c5a61b454..fe7f5bd1fd 100644 --- a/mail/em-event.c +++ b/mail/em-event.c @@ -32,6 +32,7 @@ #include "em-event.h" #include "composer/e-msg-composer.h" #include "libedataserver/e-msgport.h" +#include "em-folder-browser.h" #include #include @@ -147,6 +148,16 @@ em_event_target_new_folder (EMEvent *eme, const char *uri, unsigned int new) return t; } +EMEventTargetFolderBrowser * +em_event_target_new_folder_browser (EMEvent *eme, EMFolderBrowser *emfb) +{ + EMEventTargetFolderBrowser *t = e_event_target_new(&eme->popup, EM_EVENT_TARGET_FOLDER_BROWSER, sizeof(*t)); + + t->emfb = emfb; + + return t; +} + EMEventTargetComposer * em_event_target_new_composer (EMEvent *eme, const EMsgComposer *composer, guint32 flags) { @@ -210,6 +221,10 @@ static const EEventHookTargetMask emeh_folder_masks[] = { { NULL } }; +static const EEventHookTargetMask emeh_folder_browser_masks[] = { + { "folderbrowser", EM_EVENT_FOLDER_BROWSER }, + { NULL } +}; static const EEventHookTargetMask emeh_composer_masks[] = { { "sendoption", EM_EVENT_COMPOSER_SEND_OPTION }, @@ -230,8 +245,10 @@ static const EEventHookTargetMask emeh_custom_icon_masks[] = { { "customicon", EM_EVENT_CUSTOM_ICON }, { NULL } }; + static const EEventHookTargetMap emeh_targets[] = { { "folder", EM_EVENT_TARGET_FOLDER, emeh_folder_masks }, + { "folderbrowser", EM_EVENT_TARGET_FOLDER_BROWSER, emeh_folder_browser_masks }, { "message", EM_EVENT_TARGET_MESSAGE, emeh_message_masks }, { "composer", EM_EVENT_TARGET_COMPOSER, emeh_composer_masks}, { "sendreceive", EM_EVENT_TARGET_SEND_RECEIVE, emeh_send_receive_masks}, -- cgit