aboutsummaryrefslogtreecommitdiffstats
path: root/wombat/wombat.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-08-26 13:33:24 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-08-26 13:33:24 +0800
commit330aead96c8655a66738ecc56535b674deb08f99 (patch)
treef4e50e39967b38552de61b3ea276179063c95372 /wombat/wombat.c
parent914f8cb439199bef8b059ed28af7fa20a1b4fc2c (diff)
downloadgsoc2013-evolution-330aead96c8655a66738ecc56535b674deb08f99.tar
gsoc2013-evolution-330aead96c8655a66738ecc56535b674deb08f99.tar.gz
gsoc2013-evolution-330aead96c8655a66738ecc56535b674deb08f99.tar.bz2
gsoc2013-evolution-330aead96c8655a66738ecc56535b674deb08f99.tar.lz
gsoc2013-evolution-330aead96c8655a66738ecc56535b674deb08f99.tar.xz
gsoc2013-evolution-330aead96c8655a66738ecc56535b674deb08f99.tar.zst
gsoc2013-evolution-330aead96c8655a66738ecc56535b674deb08f99.zip
Remove gnorba related code
2000-08-26 JP Rosevear <jpr@helixcode.com> * Makefile.am: Remove gnorba related code * wombat.c: Remove gnorba related code * wombat.gnorba: Kill svn path=/trunk/; revision=5047
Diffstat (limited to 'wombat/wombat.c')
-rw-r--r--wombat/wombat.c75
1 files changed, 3 insertions, 72 deletions
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 <config.h>
+#include <gnome.h>
#include <bonobo.h>
+#include <liboaf/liboaf.h>
#include <pas/pas-book-factory.h>
#include <pas/pas-backend-file.h>
#include <libgnomevfs/gnome-vfs-init.h>
@@ -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 <gnome.h>
-
-#include <liboaf/liboaf.h>
-
static gboolean
register_pcs (CORBA_Object obj)
{
@@ -132,45 +127,7 @@ register_pcs (CORBA_Object obj)
}
}
-#else /* USING_OAF */
-
-#include <libgnorba/gnorba.h>
-
-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)
{