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-folder-browser.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'mail/em-folder-browser.c') 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); -- cgit