diff options
author | Dan Winship <danw@src.gnome.org> | 2000-07-25 09:38:08 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-07-25 09:38:08 +0800 |
commit | 9a6b1689a74bccedccd6ff45ce90a4124e394d56 (patch) | |
tree | 81482cc809ee741c398b3011638a1a554069e5c0 /mail/test-mail.c | |
parent | c09bf799645c1e54e013f85fd4c9beba6704392a (diff) | |
download | gsoc2013-evolution-9a6b1689a74bccedccd6ff45ce90a4124e394d56.tar gsoc2013-evolution-9a6b1689a74bccedccd6ff45ce90a4124e394d56.tar.gz gsoc2013-evolution-9a6b1689a74bccedccd6ff45ce90a4124e394d56.tar.bz2 gsoc2013-evolution-9a6b1689a74bccedccd6ff45ce90a4124e394d56.tar.lz gsoc2013-evolution-9a6b1689a74bccedccd6ff45ce90a4124e394d56.tar.xz gsoc2013-evolution-9a6b1689a74bccedccd6ff45ce90a4124e394d56.tar.zst gsoc2013-evolution-9a6b1689a74bccedccd6ff45ce90a4124e394d56.zip |
Remove GOAD support.
* component-factory.c, folder-browser-factory.c, test-mail.c:
Remove GOAD support.
* main.c: Remove GOAD support.
(main): More "guess the build mistake" fun, this time for the
failure to initialize Bonobo case.
svn path=/trunk/; revision=4301
Diffstat (limited to 'mail/test-mail.c')
-rw-r--r-- | mail/test-mail.c | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/mail/test-mail.c b/mail/test-mail.c index f2a39bf104..ecf8c5eda5 100644 --- a/mail/test-mail.c +++ b/mail/test-mail.c @@ -11,36 +11,8 @@ #include <gnome.h> #include <bonobo.h> - -#ifdef USING_OAF - #include <liboaf/liboaf.h> -static void -init_corba (int *argc, char *argv[]) -{ - gnome_init ("sample-control-container", "1.0", *argc, argv); - oaf_init (*argc, argv); -} - -#else /* USING_OAF */ - -#include <libgnorba/gnorba.h> - -static void -init_corba (int *argc, char *argv []) -{ - CORBA_Environment ev; - - CORBA_exception_init (&ev); - - gnome_CORBA_init ("sample-control-container", "1.0", argc, argv, 0, &ev); - - CORBA_exception_free (&ev); -} - -#endif /* USING_OAF */ - static guint create_container (void) { @@ -58,13 +30,8 @@ create_container (void) uih = bonobo_ui_handler_new (); -#ifdef USING_OAF control = bonobo_widget_new_control ("OAFIID:control:evolution-mail:833d5a71-a201-4a0e-b7e6-5475c5c4cb45", bonobo_object_corba_objref (BONOBO_OBJECT (uih))); -#else - control = bonobo_widget_new_control ("control:evolution-mail", - bonobo_object_corba_objref (BONOBO_OBJECT (uih))); -#endif if (control == NULL){ printf ("Could not launch mail control\n"); @@ -82,7 +49,8 @@ create_container (void) int main (int argc, char *argv []) { - init_corba (&argc, argv); + gnome_init ("sample-control-container", "1.0", argc, argv); + oaf_init (argc, argv); if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) g_error ("Could not initialize Bonobo\n"); |