From bb241192eb773d7f0d178306dd55f9ca8e31c1f0 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 25 May 2000 05:55:59 +0000 Subject: Reorganized the shell to allow dynamic registration of storages and folder types, and changed all the components to work with the new setup. svn path=/trunk/; revision=3199 --- addressbook/gui/component/addressbook.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'addressbook/gui/component/addressbook.c') diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index af57378d5b..8421aa074b 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -822,8 +822,8 @@ change_view_type (AddressbookView *view, AddressbookViewType view_type) } -static BonoboObject * -addressbook_factory (BonoboGenericFactory *Factory, void *closure) +BonoboControl * +addressbook_factory_new_control (void) { AddressbookView *view; @@ -863,7 +863,13 @@ addressbook_factory (BonoboGenericFactory *Factory, void *closure) gtk_signal_connect (GTK_OBJECT (view->control), "activate", control_activate_cb, view); - return BONOBO_OBJECT (view->control); + return view->control; +} + +static BonoboObject * +addressbook_factory (BonoboGenericFactory *Factory, void *closure) +{ + return BONOBO_OBJECT (addressbook_factory_new_control ()); } void -- cgit