From 330aead96c8655a66738ecc56535b674deb08f99 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Sat, 26 Aug 2000 05:33:24 +0000 Subject: Remove gnorba related code 2000-08-26 JP Rosevear * Makefile.am: Remove gnorba related code * wombat.c: Remove gnorba related code * wombat.gnorba: Kill svn path=/trunk/; revision=5047 --- wombat/ChangeLog | 2 ++ wombat/wombat.c | 75 +++------------------------------------------------- wombat/wombat.gnorba | 11 -------- 3 files changed, 5 insertions(+), 83 deletions(-) delete mode 100644 wombat/wombat.gnorba diff --git a/wombat/ChangeLog b/wombat/ChangeLog index 347049bd2b..cf595f3a8c 100644 --- a/wombat/ChangeLog +++ b/wombat/ChangeLog @@ -1,5 +1,7 @@ 2000-08-26 JP Rosevear + * Makefile.am: Remove gnorba related code + * wombat.c: Remove gnorba related code * wombat.gnorba: Kill diff --git a/wombat/wombat.c b/wombat/wombat.c index d8a6da6271..d5f350e6dd 100644 --- a/wombat/wombat.c +++ b/wombat/wombat.c @@ -6,7 +6,9 @@ */ #include +#include #include +#include #include #include #include @@ -100,13 +102,6 @@ last_calendar_gone_cb (CalFactory *factory, gpointer data) queue_termination (); } -#ifdef USING_OAF - -/* (For the OAF popt stuff, which otherwise does not get in.) */ -#include - -#include - static gboolean register_pcs (CORBA_Object obj) { @@ -132,45 +127,7 @@ register_pcs (CORBA_Object obj) } } -#else /* USING_OAF */ - -#include - -static gboolean -register_pcs (CORBA_Object object) -{ - CORBA_Environment ev; - int result; - - CORBA_exception_init (&ev); - - result = goad_server_register (CORBA_OBJECT_NIL, - object, - "evolution:calendar-factory", - "object", - &ev); - - /* FIXME: should Wombat die if it gets errors here? */ - - if (ev._major != CORBA_NO_EXCEPTION || result == -1) { - g_message ("setup_pcs(): could not register the calendar factory"); - CORBA_exception_free (&ev); - return FALSE; - } - - if (result == -2) { - g_message ("setup_pcs(): a calendar factory is already registered"); - CORBA_exception_free (&ev); - return FALSE; - } - - CORBA_exception_free (&ev); - return TRUE; -} - -#endif /* USING_OAF */ - -/* Creates the calendar factory object and registers it with GOAD */ +/* Creates the calendar factory object and registers it */ static void setup_pcs (int argc, char **argv) { @@ -217,8 +174,6 @@ setup_vfs (int argc, char **argv) -#ifdef USING_OAF - static void init_corba (int *argc, char **argv) { @@ -227,30 +182,6 @@ init_corba (int *argc, char **argv) oaf_init (*argc, argv); } -#else - -static void -init_corba (int *argc, char **argv) -{ - CORBA_Environment ev; - - CORBA_exception_init (&ev); - - gnome_CORBA_init_with_popt_table ( - "Personal Addressbook Server", "0.0", - argc, argv, NULL, 0, NULL, GNORBA_INIT_SERVER_FUNC, &ev); - - if (ev._major != CORBA_NO_EXCEPTION) { - g_message ("init_bonobo(): could not initialize GOAD"); - CORBA_exception_free (&ev); - exit (EXIT_FAILURE); - } - - CORBA_exception_free (&ev); -} - -#endif - static void init_bonobo (int *argc, char **argv) { diff --git a/wombat/wombat.gnorba b/wombat/wombat.gnorba deleted file mode 100644 index d170bebc15..0000000000 --- a/wombat/wombat.gnorba +++ /dev/null @@ -1,11 +0,0 @@ -[evolution:addressbook-server] -type=exe -repo_id=IDL:Evolution/BookFactory:1.0 IDL:Bonobo/Unknown:1.0 -description=The Personal Addressbook Server -location_info=wombat - -[evolution:calendar-factory] -type=exe -repo_id=IDL:Evolution/Calendar/CalFactory:1.0 IDL:Bonobo/Unknown:1.0 -description=The Personal Calendar Server; calendar factory -location_info=wombat -- cgit v1.2.3