From 73358f50a1915292dea968fcb9101438f38b7243 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Wed, 14 Jun 2000 04:19:29 +0000 Subject: finish switch back to vcal svn path=/trunk/; revision=3556 --- calendar/cal-client/cal-client.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'calendar/cal-client') diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c index 921e2dac59..258a7852e2 100644 --- a/calendar/cal-client/cal-client.c +++ b/calendar/cal-client/cal-client.c @@ -606,9 +606,6 @@ cal_client_get_object (CalClient *client, const char *uid, iCalObject **ico) Evolution_Calendar_CalObj calobj; char *obj_str = NULL; - icalcomponent* comp = NULL; - icalcomponent *subcomp; - iCalObject *ical; g_return_val_if_fail (client != NULL, CAL_CLIENT_GET_SYNTAX_ERROR); g_return_val_if_fail (IS_CAL_CLIENT (client), CAL_CLIENT_GET_SYNTAX_ERROR); @@ -637,6 +634,11 @@ cal_client_get_object (CalClient *client, const char *uid, iCalObject **ico) decode: CORBA_exception_free (&ev); +#if 0 + icalcomponent* comp = NULL; + icalcomponent *subcomp; + iCalObject *ical; + /* convert the string into an iCalObject */ (*ico) = NULL; if (obj_str == NULL) return CAL_CLIENT_GET_SYNTAX_ERROR; @@ -662,6 +664,10 @@ cal_client_get_object (CalClient *client, const char *uid, iCalObject **ico) subcomp = icalcomponent_get_next_component (comp, ICAL_ANY_COMPONENT); } +# else /* 0 */ + ical_object_find_in_string (uid, obj_str, ico); + +# endif /* 0 */ return CAL_CLIENT_GET_NOT_FOUND; } -- cgit v1.2.3