diff options
author | Dan Winship <danw@src.gnome.org> | 2000-08-30 02:13:21 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-08-30 02:13:21 +0800 |
commit | 3ad97477c9110a8cfd8e9641f84c8984abf33be5 (patch) | |
tree | 0bacc110535936967cc8b0b44fbb2625d4d344dc /calendar/cal-client/client-test.c | |
parent | e02a9171c4acc0d0884c32ad6b9119663b0d9bf2 (diff) | |
download | gsoc2013-evolution-3ad97477c9110a8cfd8e9641f84c8984abf33be5.tar gsoc2013-evolution-3ad97477c9110a8cfd8e9641f84c8984abf33be5.tar.gz gsoc2013-evolution-3ad97477c9110a8cfd8e9641f84c8984abf33be5.tar.bz2 gsoc2013-evolution-3ad97477c9110a8cfd8e9641f84c8984abf33be5.tar.lz gsoc2013-evolution-3ad97477c9110a8cfd8e9641f84c8984abf33be5.tar.xz gsoc2013-evolution-3ad97477c9110a8cfd8e9641f84c8984abf33be5.tar.zst gsoc2013-evolution-3ad97477c9110a8cfd8e9641f84c8984abf33be5.zip |
Remove USING_OAF checks
svn path=/trunk/; revision=5099
Diffstat (limited to 'calendar/cal-client/client-test.c')
-rw-r--r-- | calendar/cal-client/client-test.c | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/calendar/cal-client/client-test.c b/calendar/cal-client/client-test.c index 7f79b58266..c28e3f5696 100644 --- a/calendar/cal-client/client-test.c +++ b/calendar/cal-client/client-test.c @@ -21,6 +21,7 @@ #include <config.h> #include <bonobo.h> +#include <liboaf/liboaf.h> #include <gnome.h> #include <cal-client/cal-client.h> @@ -190,45 +191,14 @@ create_client (CalClient **client, const char *uri, gboolean load) } } -#ifdef USING_OAF - -#include <liboaf/liboaf.h> - -static void -init_corba (int *argc, char **argv) -{ - gnome_init ("tl-test", VERSION, *argc, argv); - oaf_init (*argc, argv); -} - -#else - -#include <libgnorba/gnorba.h> - -static void -init_corba (int *argc, char **argv) -{ - CORBA_Environment ev; - - CORBA_exception_init (&ev); - gnome_CORBA_init ("tl-test", VERSION, &argc, argv, 0, &ev); - if (ev._major != CORBA_NO_EXCEPTION) { - g_message ("main(): could not initialize the ORB"); - CORBA_exception_free (&ev); - exit (1); - } - CORBA_exception_free (&ev); -} - -#endif - int main (int argc, char **argv) { bindtextdomain (PACKAGE, GNOMELOCALEDIR); textdomain (PACKAGE); - init_corba (&argc, argv); + gnome_init ("tl-test", VERSION, argc, argv); + oaf_init (argc, argv); if (!bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL)) { g_message ("main(): could not initialize Bonobo"); |