aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-client
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-10-02 22:43:33 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-10-02 22:43:33 +0800
commit82ca0883f72b38604a914bc6bd0689f530b1e0a1 (patch)
tree8e79281f9c6cf285dae6a282b13e8bd1ec3406c2 /calendar/cal-client
parent8828ff2fa35c98b0ec99b18c7594ee5dcb31ba65 (diff)
downloadgsoc2013-evolution-82ca0883f72b38604a914bc6bd0689f530b1e0a1.tar
gsoc2013-evolution-82ca0883f72b38604a914bc6bd0689f530b1e0a1.tar.gz
gsoc2013-evolution-82ca0883f72b38604a914bc6bd0689f530b1e0a1.tar.bz2
gsoc2013-evolution-82ca0883f72b38604a914bc6bd0689f530b1e0a1.tar.lz
gsoc2013-evolution-82ca0883f72b38604a914bc6bd0689f530b1e0a1.tar.xz
gsoc2013-evolution-82ca0883f72b38604a914bc6bd0689f530b1e0a1.tar.zst
gsoc2013-evolution-82ca0883f72b38604a914bc6bd0689f530b1e0a1.zip
use bonobo-exception to tidy
2001-10-02 JP Rosevear <jpr@ximian.com> * cal-client/cal-query.c: use bonobo-exception to tidy svn path=/trunk/; revision=13302
Diffstat (limited to 'calendar/cal-client')
-rw-r--r--calendar/cal-client/cal-query.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/calendar/cal-client/cal-query.c b/calendar/cal-client/cal-query.c
index 958bad9f52..d1c29fbb9a 100644
--- a/calendar/cal-client/cal-query.c
+++ b/calendar/cal-client/cal-query.c
@@ -24,6 +24,7 @@
#endif
#include <gtk/gtksignal.h>
+#include <bonobo/bonobo-exception.h>
#include "cal-query.h"
#include "query-listener.h"
@@ -190,7 +191,7 @@ cal_query_destroy (GtkObject *object)
CORBA_exception_init (&ev);
bonobo_object_release_unref (priv->corba_query, &ev);
- if (ev._major != CORBA_NO_EXCEPTION)
+ if (BONOBO_EX (&ev))
g_message ("cal_query_destroy(): Could not release/unref the query");
CORBA_exception_free (&ev);
@@ -357,12 +358,10 @@ cal_query_construct (CalQuery *query,
CORBA_exception_init (&ev);
priv->corba_query = GNOME_Evolution_Calendar_Cal_getQuery (cal, sexp, corba_ql, &ev);
- if (ev._major == CORBA_USER_EXCEPTION
- && strcmp (CORBA_exception_id (&ev),
- ex_GNOME_Evolution_Calendar_Cal_CouldNotCreate) == 0) {
+ if (BONOBO_USER_EX (&ev, ex_GNOME_Evolution_Calendar_Cal_CouldNotCreate)) {
g_message ("cal_query_construct(): The server could not create the query");
goto error;
- } else if (ev._major != CORBA_NO_EXCEPTION) {
+ } else if (BONOBO_EX (&ev)) {
g_message ("cal_query_construct(): Could not issue the getQuery() request");
goto error;
}