diff options
author | JP Rosevear <jpr@ximian.com> | 2002-03-15 22:05:33 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-03-15 22:05:33 +0800 |
commit | ac6299d7a485294d6090835b9942ea061c5279cf (patch) | |
tree | 00ce693ce5cde7f4502a63b3ae49f04be0131b2f /calendar/gui/calendar-commands.c | |
parent | 02d39bf7b3fa10dbd8cbf21c13b842bcf69ff64a (diff) | |
download | gsoc2013-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/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index 4aa9eb7248..8eb6a540e8 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -45,6 +45,7 @@ #include <libgnome/gnome-util.h> #include <libgnome/gnome-i18n.h> #include <bonobo/bonobo-ui-util.h> +#include <bonobo/bonobo-exception.h> #include <cal-util/timeutil.h> #include "shell/Evolution.h" #include "calendar-commands.h" @@ -339,7 +340,7 @@ get_shell_view_interface (BonoboControl *control) shell_view = Bonobo_Unknown_queryInterface (control_frame, "IDL:GNOME/Evolution/ShellView:1.0", &ev); - if (ev._major != CORBA_NO_EXCEPTION) { + if (BONOBO_EX (&ev)) { g_message ("get_shell_view_interface(): " "Could not queryInterface() on the control frame"); shell_view = CORBA_OBJECT_NIL; @@ -464,7 +465,7 @@ control_util_set_folder_bar_label (BonoboControl *control, char *label) CORBA_exception_init (&ev); GNOME_Evolution_ShellView_setFolderBarLabel (shell_view, label, &ev); - if (ev._major != CORBA_NO_EXCEPTION) + if (BONOBO_EX (&ev)) g_message ("control_util_set_folder_bar_label(): Could not set the folder bar label"); CORBA_exception_free (&ev); |