aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/itip-bonobo-control.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/itip-bonobo-control.c
parent02d39bf7b3fa10dbd8cbf21c13b842bcf69ff64a (diff)
downloadgsoc2013-evolution-ac6299d7a485294d6090835b9942ea061c5279cf.tar
gsoc2013-evolution-ac6299d7a485294d6090835b9942ea061c5279cf.tar.gz
gsoc2013-evolution-ac6299d7a485294d6090835b9942ea061c5279cf.tar.bz2
gsoc2013-evolution-ac6299d7a485294d6090835b9942ea061c5279cf.tar.lz
gsoc2013-evolution-ac6299d7a485294d6090835b9942ea061c5279cf.tar.xz
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/itip-bonobo-control.c')
-rw-r--r--calendar/gui/itip-bonobo-control.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/calendar/gui/itip-bonobo-control.c b/calendar/gui/itip-bonobo-control.c
index 54681346cc..d05cee6d9a 100644
--- a/calendar/gui/itip-bonobo-control.c
+++ b/calendar/gui/itip-bonobo-control.c
@@ -30,6 +30,7 @@
#include <bonobo/bonobo-persist-stream.h>
#include <bonobo/bonobo-stream-client.h>
#include <bonobo/bonobo-context.h>
+#include <bonobo/bonobo-exception.h>
#include <ical.h>
#include "e-itip-control.h"
@@ -63,7 +64,7 @@ stream_read (Bonobo_Stream stream)
Bonobo_Stream_read (stream, READ_CHUNK_SIZE,
&buffer, &ev);
- if (ev._major != CORBA_NO_EXCEPTION) {
+ if (BONOBO_EX (&ev)) {
CORBA_exception_free (&ev);
return NULL;
}
@@ -101,15 +102,13 @@ pstream_load (BonoboPersistStream *ps, const Bonobo_Stream stream,
gchar *text;
if (type && g_strcasecmp (type, "text/calendar") != 0 &&
- g_strcasecmp (type, "text/x-calendar") != 0) {
- CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
- ex_Bonobo_Persist_WrongDataType, NULL);
+ g_strcasecmp (type, "text/x-calendar") != 0) {
+ bonobo_exception_set (ev, ex_Bonobo_Persist_WrongDataType);
return;
}
if ((text = stream_read (stream)) == NULL) {
- CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
- ex_Bonobo_Persist_FileNotFound, NULL);
+ bonobo_exception_set (ev, ex_Bonobo_Persist_FileNotFound);
return;
}
@@ -130,8 +129,7 @@ pstream_save (BonoboPersistStream *ps, const Bonobo_Stream stream,
if (type && g_strcasecmp (type, "text/calendar") != 0 &&
g_strcasecmp (type, "text/x-calendar") != 0) {
- CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
- ex_Bonobo_Persist_WrongDataType, NULL);
+ bonobo_exception_set (ev, ex_Bonobo_Persist_WrongDataType);
return;
}