aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-component.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-10-15 15:36:53 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-10-15 15:36:53 +0800
commit084a2d2e3d39e7b25a6101f125a37bb05b9caf81 (patch)
tree7dfaec2c9b2feccc605d7704b0ee1b9dd93fa62b /addressbook/gui/component/addressbook-component.c
parent3c9bfa7f65ee62000f5eef7376e4de7a88163f55 (diff)
downloadgsoc2013-evolution-084a2d2e3d39e7b25a6101f125a37bb05b9caf81.tar
gsoc2013-evolution-084a2d2e3d39e7b25a6101f125a37bb05b9caf81.tar.gz
gsoc2013-evolution-084a2d2e3d39e7b25a6101f125a37bb05b9caf81.tar.bz2
gsoc2013-evolution-084a2d2e3d39e7b25a6101f125a37bb05b9caf81.tar.lz
gsoc2013-evolution-084a2d2e3d39e7b25a6101f125a37bb05b9caf81.tar.xz
gsoc2013-evolution-084a2d2e3d39e7b25a6101f125a37bb05b9caf81.tar.zst
gsoc2013-evolution-084a2d2e3d39e7b25a6101f125a37bb05b9caf81.zip
added an any select mask and updated the hook maps.
2004-10-15 Not Zed <NotZed@Ximian.com> * 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
Diffstat (limited to 'addressbook/gui/component/addressbook-component.c')
-rw-r--r--addressbook/gui/component/addressbook-component.c10
1 files changed, 10 insertions, 0 deletions
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());
+ }
}