diff options
author | Matthew Loper <mloper@src.gnome.org> | 2000-03-29 12:47:57 +0800 |
---|---|---|
committer | Matthew Loper <mloper@src.gnome.org> | 2000-03-29 12:47:57 +0800 |
commit | c741f30353b11728b7352abe1f7194c3a1616864 (patch) | |
tree | 9b28c8f934c405236eaaf42870d00b61c4058d05 /wombat/wombat.c | |
parent | 6ba417b085e0e7049f99bfd63c492468a14c7e8c (diff) | |
download | gsoc2013-evolution-c741f30353b11728b7352abe1f7194c3a1616864.tar.gz gsoc2013-evolution-c741f30353b11728b7352abe1f7194c3a1616864.tar.zst gsoc2013-evolution-c741f30353b11728b7352abe1f7194c3a1616864.zip |
+ * wombat/Makefile.am: new file.
+ * wombat/wombat.gnorba: Cleaned up.
+
+ * wombat/wombat.c (setup_pcs): filled in the rest.
+
+ * e-table-text-model.c (e_table_text_model_destroy): made
+ assertion more accurate.
svn path=/trunk/; revision=2244
Diffstat (limited to 'wombat/wombat.c')
-rw-r--r-- | wombat/wombat.c | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/wombat/wombat.c b/wombat/wombat.c index 034b97f478..9568ae1938 100644 --- a/wombat/wombat.c +++ b/wombat/wombat.c @@ -9,6 +9,10 @@ #include <bonobo.h> #include <backend/pas-book-factory.h> #include <backend/pas-backend-file.h> +#include <libgnomevfs/gnome-vfs-init.h> +#include <libgnorba/gnorba.h> +#include <cal-factory.h> +#include <calobj.h> CORBA_Environment ev; CORBA_ORB orb; @@ -26,20 +30,45 @@ setup_pas (int argc, char **argv) pas_book_factory_activate (factory); } -#include "cal-factory.h" -#include "calobj.h" + static void setup_pcs (int argc, char **argv) { - CalFactory *factory; - - factory = cal_factory_new (); + int result; + CORBA_Object object; + CalFactory *factory = cal_factory_new (); + if (!factory) { g_message ("%s: %d: couldn't create a Calendar factory\n", __FILE__, __LINE__); } - - + + object = bonobo_object_corba_objref (BONOBO_OBJECT (factory)); + + CORBA_exception_init (&ev); + result = goad_server_register (CORBA_OBJECT_NIL, + object, + "evolution:calendar-factory", + "server", + &ev); + + if (ev._major != CORBA_NO_EXCEPTION || result == -1) { + + g_message ("create_cal_factory(): " + "could not register the calendar factory"); + bonobo_object_unref (BONOBO_OBJECT (factory)); + CORBA_exception_free (&ev); + + } else if (result == -2) { + + g_message ("create_cal_factory(): " + "a calendar factory is already registered"); + bonobo_object_unref (BONOBO_OBJECT (factory)); + CORBA_exception_free (&ev); + + } + + CORBA_exception_free (&ev); } static void @@ -47,7 +76,6 @@ setup_config (int argc, char **argv) { } -#include <libgnomevfs/gnome-vfs-init.h> static void setup_vfs (int argc, char **argv) { @@ -57,7 +85,7 @@ setup_vfs (int argc, char **argv) } } -#include <libgnorba/gnorba.h> + static void init_bonobo (int argc, char **argv) { |