diff options
author | Johnny Jacob <jjohnny@src.gnome.org> | 2009-02-02 02:24:45 +0800 |
---|---|---|
committer | Johnny Jacob <jjohnny@src.gnome.org> | 2009-02-02 02:24:45 +0800 |
commit | 533cd49bc6475ef48ad5eb6a93d0f58450b3c9e8 (patch) | |
tree | 303c4a4870b8c35327be3f54d2a86010055b4198 /mail/em-event.c | |
parent | ae7b6e0624c57024397ff5332ff1200e8acebcf5 (diff) | |
download | gsoc2013-evolution-533cd49bc6475ef48ad5eb6a93d0f58450b3c9e8.tar.gz gsoc2013-evolution-533cd49bc6475ef48ad5eb6a93d0f58450b3c9e8.tar.zst gsoc2013-evolution-533cd49bc6475ef48ad5eb6a93d0f58450b3c9e8.zip |
EPLugin : Added new hook point.
svn path=/trunk/; revision=37205
Diffstat (limited to 'mail/em-event.c')
-rw-r--r-- | mail/em-event.c | 17 |
1 files changed, 17 insertions, 0 deletions
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 <camel/camel-store.h> #include <camel/camel-folder.h> @@ -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}, |