aboutsummaryrefslogtreecommitdiffstats
path: root/wombat/wombat.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-04-17 03:26:57 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-04-17 03:26:57 +0800
commitfc3bb06c5079fb2a8c0cd550211976f745ba3d86 (patch)
tree7740fd06b776ca5f74334e5a2370a1346bfaac1e /wombat/wombat.c
parent75f8b00ea05e5485530fb4a74af7e9afdf5345ae (diff)
downloadgsoc2013-evolution-fc3bb06c5079fb2a8c0cd550211976f745ba3d86.tar
gsoc2013-evolution-fc3bb06c5079fb2a8c0cd550211976f745ba3d86.tar.gz
gsoc2013-evolution-fc3bb06c5079fb2a8c0cd550211976f745ba3d86.tar.bz2
gsoc2013-evolution-fc3bb06c5079fb2a8c0cd550211976f745ba3d86.tar.lz
gsoc2013-evolution-fc3bb06c5079fb2a8c0cd550211976f745ba3d86.tar.xz
gsoc2013-evolution-fc3bb06c5079fb2a8c0cd550211976f745ba3d86.tar.zst
gsoc2013-evolution-fc3bb06c5079fb2a8c0cd550211976f745ba3d86.zip
Removed spurious calendar directories from the include path. Added
2000-04-16 Federico Mena Quintero <federico@helixcode.com> * Makefile.am (INCLUDES): Removed spurious calendar directories from the include path. Added "wombat" log domain for glib. (wombat_LDADD): Link libpcs.a instead of the old shared library. * wombat.c: cal-factory.h is an internal include file. * wombat.c (setup_pcs): We should NOT share a CORBA_environment across all functions! Use our own CORBA_environment. (init_bonobo): Use our own CORBA_environment. Free the exception after initializing GOAD, and present some error messages if necessary. (Should g_message()s for exceptional situations be marked for translation?). svn path=/trunk/; revision=2462
Diffstat (limited to 'wombat/wombat.c')
-rw-r--r--wombat/wombat.c29
1 files changed, 20 insertions, 9 deletions
diff --git a/wombat/wombat.c b/wombat/wombat.c
index 24cae9713c..1d703e3833 100644
--- a/wombat/wombat.c
+++ b/wombat/wombat.c
@@ -1,6 +1,6 @@
-/*
- * Author:
- * Nat Friedman (nat@helixcode.com)
+/* Wombat personal information server - main file
+ *
+ * Author: Nat Friedman <nat@helixcode.com>
*
* Copyright 2000, Helix Code, Inc.
*/
@@ -14,10 +14,8 @@
#endif
#include <libgnomevfs/gnome-vfs-init.h>
#include <libgnorba/gnorba.h>
-#include <cal-factory.h>
-#include <calobj.h>
+#include "calendar/pcs/cal-factory.h"
-CORBA_Environment ev;
CORBA_ORB orb;
static void
@@ -43,8 +41,9 @@ static void
setup_pcs (int argc, char **argv)
{
CalFactory *factory;
- int result;
CORBA_Object object;
+ CORBA_Environment ev;
+ int result;
factory = cal_factory_new ();
@@ -103,16 +102,28 @@ setup_vfs (int argc, char **argv)
static void
init_bonobo (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 (1);
+ }
+
+ CORBA_exception_free (&ev);
+
orb = gnome_CORBA_ORB ();
- if (bonobo_init (orb, NULL, NULL) == FALSE)
- g_error (_("Could not initialize Bonobo"));
+ if (!bonobo_init (orb, NULL, NULL)) {
+ g_message ("init_bonobo(): could not initialize Bonobo");
+ exit (1);
+ }
}
int