aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/test-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend/ebook/test-client.c')
-rw-r--r--addressbook/backend/ebook/test-client.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/addressbook/backend/ebook/test-client.c b/addressbook/backend/ebook/test-client.c
index ef13c1ab96..acbeedac41 100644
--- a/addressbook/backend/ebook/test-client.c
+++ b/addressbook/backend/ebook/test-client.c
@@ -1,6 +1,7 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include <config.h>
#include <bonobo.h>
+#include <liboaf/liboaf.h>
#include <gnome.h>
#include <e-book.h>
@@ -32,32 +33,6 @@
static CORBA_Environment ev;
static char *cardstr;
-#ifdef USING_OAF
-
-#include <liboaf/liboaf.h>
-
-static void
-init_corba (int *argc, char **argv)
-{
- gnome_init_with_popt_table("blah", "0.0", *argc, argv, NULL, 0, NULL);
-
- oaf_init (*argc, argv);
-}
-
-#else
-
-#include <libgnorba/gnorba.h>
-
-static void
-init_corba (int *argc, char **argv)
-{
- gnome_CORBA_init_with_popt_table (
- "blah", "0.0",
- argc, argv, NULL, 0, NULL, GNORBA_INIT_SERVER_FUNC, &ev);
-}
-
-#endif
-
static void
init_bonobo (int argc, char **argv)
{
@@ -172,7 +147,8 @@ main (int argc, char **argv)
CORBA_exception_init (&ev);
- init_corba (&argc, argv);
+ gnome_init_with_popt_table ("blah", "0.0", argc, argv, NULL, 0, NULL);
+ oaf_init (argc, argv);
init_bonobo (argc, argv);
cardstr = NULL;