From 084a2d2e3d39e7b25a6101f125a37bb05b9caf81 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 15 Oct 2004 07:36:53 +0000 Subject: added an any select mask and updated the hook maps. 2004-10-15 Not Zed * gui/widgets/eab-popup.c: added an any select mask and updated the hook maps. * gui/component/addressbook-component.c (addressbook_component_init): register the addressbook hooks. * gui/component/addressbook-view.c (addressbook_view_init): setup the menu manager. (control_activate_cb): activate the menu manager. (update_command_state): and update the menu manager. * gui/widgets/eab-menu.[ch]: Added menu manager class. svn path=/trunk/; revision=27589 --- addressbook/gui/component/addressbook-component.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'addressbook/gui/component/addressbook-component.c') diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index befd07098d..9e71580d0b 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -31,6 +31,9 @@ #include "addressbook-view.h" #include "addressbook/gui/contact-editor/eab-editor.h" #include "addressbook/gui/widgets/eab-gui-util.h" +#include "e-util/e-plugin.h" +#include "addressbook/gui/widgets/eab-popup.h" +#include "addressbook/gui/widgets/eab-menu.h" #include "widgets/misc/e-task-bar.h" #include "widgets/misc/e-info-label.h" @@ -246,6 +249,7 @@ static void addressbook_component_init (AddressbookComponent *component) { AddressbookComponentPrivate *priv; + static int first = TRUE; priv = g_new0 (AddressbookComponentPrivate, 1); @@ -259,6 +263,12 @@ addressbook_component_init (AddressbookComponent *component) #ifdef ENABLE_SMIME smime_component_init (); #endif + + if (first) { + first = FALSE; + e_plugin_hook_register_type(eab_popup_hook_get_type()); + e_plugin_hook_register_type(eab_menu_hook_get_type()); + } } -- cgit v1.2.3