From f59d7438e2498b9a7dcaf3d95e403069338ca0e2 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 13 Mar 2000 16:59:34 +0000 Subject: Added an E_FOLDER_CONTACTS section to the get_view function. 2000-03-13 Christopher James Lahey * shell/e-shell-view.c: Added an E_FOLDER_CONTACTS section to the get_view function. * addressbook/demo/Makefile.am: Added files for addressbook bonobo component. Changed non bonobo version to compile as test-addressbook. * addressbook/demo/addressbook.c, addressbook/demo/addressbook.gnorba, addressbook/demo/addressbook.h, addressbook/demo/addressbook-factory.c, addressbook/demo/addressbook-widget.c, addressbook/demo/addressbook-widget.h: New factory to create an addressbook bonobo component. svn path=/trunk/; revision=2114 --- shell/e-shell-view.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'shell/e-shell-view.c') diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 0ea017c58e..99f2db44f0 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -120,6 +120,31 @@ get_view (EShellView *eshell_view, EFolder *efolder, Bonobo_UIHandler uih) } } break; + + case E_FOLDER_CONTACTS : + { +#if 0 + Evolution_ServiceRepository corba_sr; +#endif + + w = bonobo_widget_new_control ("control:addressbook", + uih); +#if 0 + server = bonobo_widget_get_server (BONOBO_WIDGET (w)); + + corba_sr = (Evolution_ServiceRepository) + bonobo_object_client_query_interface (server, + "IDL:Evolution/ServiceRepository:1.0", + NULL); + if (corba_sr != CORBA_OBJECT_NIL) { + Evolution_ServiceRepository_set_shell (corba_sr, corba_shell, &ev); + } else { + g_warning ("The bonobo component for the mail doesn't seem to implement the " + "Evolution::ServiceRepository interface\n"); + } +#endif + } + break; default : printf ("No bonobo component associated to %s\n", -- cgit v1.2.3