From 421aa80ae6961cb4ddef8e79133ce89fcfbbf52d Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Thu, 12 Jul 2001 02:38:25 +0000 Subject: renamed updateObject to updateObjects and removed the UID argument, since 2001-07-11 Damon Chaplin * idl/evolution-calendar.idl: renamed updateObject to updateObjects and removed the UID argument, since it can add/update multiple objects at once. (It can't yet, but it will!) * pcs/cal.c: * pcs/cal-backend.[hc]: * pcs/cal-backend-file.c: renamed update_object to update_objects and got rid of the UID arg. * cal-client/cal-client.c (cal_client_update_objects): new function to add/update multiple objects in one go, i.e for iTIP and for importing calendars. * gui/print.c (print_date_label): fixed type bug. * gui/e-week-view.[hc]: * gui/e-week-view-event-item.c: draw the timezone icons if the event's DTSTART or DTEND is in a different timezone to the current one. Note that we may want to change this so it compares the UTC offsets rather than the TZIDs, since currently it will draw the icons for all events coming from iTIP requests from other clients. svn path=/trunk/; revision=11027 --- calendar/pcs/cal.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'calendar/pcs/cal.c') diff --git a/calendar/pcs/cal.c b/calendar/pcs/cal.c index 9cd5b5b219..f89d5c820f 100644 --- a/calendar/pcs/cal.c +++ b/calendar/pcs/cal.c @@ -347,12 +347,11 @@ impl_Cal_get_alarms_for_object (PortableServer_Servant servant, } } -/* Cal::update_object method */ +/* Cal::update_objects method */ static void -impl_Cal_update_object (PortableServer_Servant servant, - const GNOME_Evolution_Calendar_CalObjUID uid, - const GNOME_Evolution_Calendar_CalObj calobj, - CORBA_Environment *ev) +impl_Cal_update_objects (PortableServer_Servant servant, + const GNOME_Evolution_Calendar_CalObj calobj, + CORBA_Environment *ev) { Cal *cal; CalPrivate *priv; @@ -360,7 +359,7 @@ impl_Cal_update_object (PortableServer_Servant servant, cal = CAL (bonobo_object_from_servant (servant)); priv = cal->priv; - if (!cal_backend_update_object (priv->backend, uid, calobj)) + if (!cal_backend_update_objects (priv->backend, calobj)) CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_GNOME_Evolution_Calendar_Cal_InvalidObject, NULL); @@ -592,7 +591,7 @@ cal_class_init (CalClass *klass) epv->getFreeBusy = impl_Cal_get_free_busy; epv->getAlarmsInRange = impl_Cal_get_alarms_in_range; epv->getAlarmsForObject = impl_Cal_get_alarms_for_object; - epv->updateObject = impl_Cal_update_object; + epv->updateObjects = impl_Cal_update_objects; epv->removeObject = impl_Cal_remove_object; epv->getQuery = impl_Cal_get_query; } -- cgit v1.2.3