aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.c
diff options
context:
space:
mode:
authorJohnny Jacob <jjohnny@src.gnome.org>2009-02-02 02:24:45 +0800
committerJohnny Jacob <jjohnny@src.gnome.org>2009-02-02 02:24:45 +0800
commit533cd49bc6475ef48ad5eb6a93d0f58450b3c9e8 (patch)
tree303c4a4870b8c35327be3f54d2a86010055b4198 /mail/em-folder-browser.c
parentae7b6e0624c57024397ff5332ff1200e8acebcf5 (diff)
downloadgsoc2013-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-folder-browser.c')
-rw-r--r--mail/em-folder-browser.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index b7c53268cc..b0b507b1a3 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -88,6 +88,7 @@
#include "em-folder-utils.h"
#include "em-subscribe-editor.h"
#include "em-menu.h"
+#include "em-event.h"
#include "message-list.h"
#include "mail-component.h"
@@ -486,6 +487,9 @@ emfb_init(GObject *o)
RuleContext *search_context = mail_component_peek_search_context (mail_component_peek ());
struct _EMFolderBrowserPrivate *p;
+ EMEvent *eme;
+ EMEventTargetFolderBrowser *target;
+
p = emfb->priv = g_malloc0(sizeof(struct _EMFolderBrowserPrivate));
emfb->view.preview_active = TRUE;
@@ -566,6 +570,17 @@ emfb_init(GObject *o)
gtk_paned_pack2 (GTK_PANED (emfb->vpane), p->preview, TRUE, FALSE);
gtk_widget_show(p->preview);
+ /** @HookPoint-EMFolderBrower: Folder Browser
+ * @Id: emfb.created
+ * @Class: org.gnome.evolution.mail.events:1.0
+ * @Target: EMFolderBrowser
+ */
+
+ eme = em_event_peek();
+ target = em_event_target_new_folder_browser (eme, emfb);
+
+ e_event_emit((EEvent *)eme, "emfb.created", (EEventTarget *)target);
+
g_signal_connect (((EMFolderView *) emfb)->list->tree, "key_press", G_CALLBACK(emfb_list_key_press), emfb);
g_signal_connect (((EMFolderView *) emfb)->list, "message_selected", G_CALLBACK (emfb_list_message_selected), emfb);