aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2004-04-23 23:35:36 +0800
committerDan Winship <danw@src.gnome.org>2004-04-23 23:35:36 +0800
commitc8103848edb67dcd80653f7ba6da9dc7ac222851 (patch)
treebb67b32b89849172c945072d8cfc5bd86f49f04f
parentcce69a908c9a5c558495f90051cc4c347740bbcd (diff)
downloadgsoc2013-evolution-c8103848edb67dcd80653f7ba6da9dc7ac222851.tar
gsoc2013-evolution-c8103848edb67dcd80653f7ba6da9dc7ac222851.tar.gz
gsoc2013-evolution-c8103848edb67dcd80653f7ba6da9dc7ac222851.tar.bz2
gsoc2013-evolution-c8103848edb67dcd80653f7ba6da9dc7ac222851.tar.lz
gsoc2013-evolution-c8103848edb67dcd80653f7ba6da9dc7ac222851.tar.xz
gsoc2013-evolution-c8103848edb67dcd80653f7ba6da9dc7ac222851.tar.zst
gsoc2013-evolution-c8103848edb67dcd80653f7ba6da9dc7ac222851.zip
Fix the addressbook control to not crash. (Temporary fix.)
* gui/component/component-factory.c (factory): Fix the addressbook control to not crash. (Temporary fix.) svn path=/trunk/; revision=25601
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/component-factory.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 3f0a7de6c3..84dab3bf04 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-23 Dan Winship <danw@ximian.com>
+
+ * gui/component/component-factory.c (factory): Fix the addressbook
+ control to not crash. (Temporary fix.)
+
2004-04-23 Chris Toshok <toshok@ximian.com>
* gui/widgets/eab-gui-util.c (added_cb): this signal takes an
diff --git a/addressbook/gui/component/component-factory.c b/addressbook/gui/component/component-factory.c
index f8ac672d01..dff4164955 100644
--- a/addressbook/gui/component/component-factory.c
+++ b/addressbook/gui/component/component-factory.c
@@ -26,6 +26,7 @@
#include "addressbook.h"
#include "addressbook-component.h"
#include "addressbook-config.h"
+#include "addressbook-view.h"
#include "autocompletion-config.h"
#include "eab-popup-control.h"
#include "eab-vcard-control.h"
@@ -57,8 +58,13 @@ factory (BonoboGenericFactory *factory,
if (strcmp (component_id, VCARD_CONTROL_ID) == 0)
return BONOBO_OBJECT (eab_vcard_control_new ());
- if (strcmp (component_id, ADDRESSBOOK_CONTROL_ID) == 0)
- return BONOBO_OBJECT (addressbook_new_control ());
+ if (strcmp (component_id, ADDRESSBOOK_CONTROL_ID) == 0) {
+ AddressbookView *view;
+
+ /* FIXME: temporary hack, leaks a view */
+ view = addressbook_view_new ();
+ return BONOBO_OBJECT (addressbook_view_peek_folder_view (view));
+ }
if (strcmp (component_id, COMPONENT_ID) == 0) {
BonoboObject *object = BONOBO_OBJECT (addressbook_component_peek ());
bonobo_object_ref (object);