aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/main.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-03-15 22:05:33 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-03-15 22:05:33 +0800
commitac6299d7a485294d6090835b9942ea061c5279cf (patch)
tree00ce693ce5cde7f4502a63b3ae49f04be0131b2f /calendar/gui/main.c
parent02d39bf7b3fa10dbd8cbf21c13b842bcf69ff64a (diff)
downloadgsoc2013-evolution-ac6299d7a485294d6090835b9942ea061c5279cf.tar.gz
gsoc2013-evolution-ac6299d7a485294d6090835b9942ea061c5279cf.tar.zst
gsoc2013-evolution-ac6299d7a485294d6090835b9942ea061c5279cf.zip
use bonobo exception macros to tidy
2002-03-15 JP Rosevear <jpr@ximian.com> * gui/main.c: use bonobo exception macros to tidy * gui/itip-control-factory.c: ditto * gui/gnome-cal.c: ditto * gui/comp-editor-factory.c: ditto * gui/calendar-commands.c: ditto svn path=/trunk/; revision=16172
Diffstat (limited to 'calendar/gui/main.c')
-rw-r--r--calendar/gui/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/main.c b/calendar/gui/main.c
index b74b1040cd..5c7a2bc08f 100644
--- a/calendar/gui/main.c
+++ b/calendar/gui/main.c
@@ -34,6 +34,7 @@
#include <liboaf/liboaf.h>
#include <bonobo/bonobo-main.h>
#include <bonobo/bonobo-generic-factory.h>
+#include <bonobo/bonobo-exception.h>
#include <gal/widgets/e-cursors.h>
@@ -103,7 +104,7 @@ launch_alarm_daemon (void)
CORBA_exception_init (&ev);
an = oaf_activate_from_id ("OAFIID:GNOME_Evolution_Calendar_AlarmNotify", 0, NULL, &ev);
- if (ev._major != CORBA_NO_EXCEPTION) {
+ if (BONOBO_EX (&ev)) {
g_message ("add_alarms(): Could not activate the alarm notification service");
CORBA_exception_free (&ev);
return;
@@ -114,7 +115,7 @@ launch_alarm_daemon (void)
CORBA_exception_init (&ev);
bonobo_object_release_unref (an, &ev);
- if (ev._major != CORBA_NO_EXCEPTION)
+ if (BONOBO_EX (&ev))
g_message ("add_alarms(): Could not unref the alarm notification service");
CORBA_exception_free (&ev);