diff options
author | Eskil Heyn Olsen <eskil@src.gnome.org> | 1999-09-15 22:02:57 +0800 |
---|---|---|
committer | Eskil Heyn Olsen <eskil@src.gnome.org> | 1999-09-15 22:02:57 +0800 |
commit | c6da2725e05030af92353147a37a5f559e5f3a42 (patch) | |
tree | f7338de6fc84b92fde4037d307910797a809731b /calendar/gui | |
parent | 7251a2d2bc2274529e1ddd1d5a3c04771cc86113 (diff) | |
download | gsoc2013-evolution-c6da2725e05030af92353147a37a5f559e5f3a42.tar.gz gsoc2013-evolution-c6da2725e05030af92353147a37a5f559e5f3a42.tar.zst gsoc2013-evolution-c6da2725e05030af92353147a37a5f559e5f3a42.zip |
fixed the exception throwing. The conduit can now actually insert
entries in the gnomecal.
svn path=/trunk/; revision=1230
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/corba-cal.c | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/calendar/gui/corba-cal.c b/calendar/gui/corba-cal.c index 6b4566dc06..787c913418 100644 --- a/calendar/gui/corba-cal.c +++ b/calendar/gui/corba-cal.c @@ -55,11 +55,14 @@ cal_repo_get_object (PortableServer_Servant servant, obj = calendar_object_find_event (gcal->cal, uid); if (obj == NULL){ + GNOME_Calendar_Repository_NotFound *exn; + + exn = GNOME_Calendar_Repository_NotFound__alloc(); CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, ex_GNOME_Calendar_Repository_NotFound, - ""); + exn); return NULL; } @@ -80,11 +83,17 @@ cal_repo_get_object_by_pilot_id (PortableServer_Servant servant, char *buffer; CORBA_char *ret; + g_message("entering cal_repo_get_object_by_pilot_id\n"); + obj = calendar_object_find_by_pilot (gcal->cal, pilot_id); if (obj == NULL){ + GNOME_Calendar_Repository_NotFound *exn; + + exn = GNOME_Calendar_Repository_NotFound__alloc(); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, - ex_GNOME_Calendar_Repository_NotFound, NULL); + ex_GNOME_Calendar_Repository_NotFound, exn); + g_message("leaving cal_repo_get_object_by_pilot_id the hard way\n"); return NULL; } @@ -92,6 +101,8 @@ cal_repo_get_object_by_pilot_id (PortableServer_Servant servant, ret = CORBA_string_dup (buffer); free (buffer); + g_message("leaving cal_repo_get_object_by_pilot_id\n"); + return ret; } @@ -106,9 +117,12 @@ cal_repo_get_id_from_pilot_id (PortableServer_Servant servant, obj = calendar_object_find_by_pilot (gcal->cal, pilot_id); if (obj == NULL){ + GNOME_Calendar_Repository_NotFound *exn; + + exn = GNOME_Calendar_Repository_NotFound__alloc(); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, - ex_GNOME_Calendar_Repository_NotFound, NULL); + ex_GNOME_Calendar_Repository_NotFound, exn); return NULL; } @@ -125,9 +139,12 @@ cal_repo_delete_object (PortableServer_Servant servant, obj = calendar_object_find_event (gcal->cal, uid); if (obj == NULL){ + GNOME_Calendar_Repository_NotFound *exn; + + exn = GNOME_Calendar_Repository_NotFound__alloc(); CORBA_exception_set (ev, CORBA_USER_EXCEPTION, - ex_GNOME_Calendar_Repository_NotFound, NULL); + ex_GNOME_Calendar_Repository_NotFound, exn); return; } @@ -166,11 +183,14 @@ cal_repo_update_pilot_id (PortableServer_Servant servant, obj = calendar_object_find_event (gcal->cal, uid); if (obj == NULL){ + GNOME_Calendar_Repository_NotFound *exn; + + exn = GNOME_Calendar_Repository_NotFound__alloc(); CORBA_exception_set ( ev, CORBA_USER_EXCEPTION, ex_GNOME_Calendar_Repository_NotFound, - ""); + exn); return; } |