From 5d56cdb0b37b4b8919df92ff35daf06934666061 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 4 Feb 2000 04:42:34 +0000 Subject: New function to create the base VObject for a calendar. 2000-02-04 Federico Mena Quintero * cal-backend.c (get_calendar_base_vobject): New function to create the base VObject for a calendar. (cal_backend_get_object): Create the base calendar and add the sought object to it, then stringify it. * evolution-calendar.idl (Listener::obj_added Listener::obj_changed): Now these pass in just the UIDs, not the complete objects. * cal-listener.c (Listener_obj_added): Changed to pass in the uid, not the object. (Listener_obj_changed): Likewise. * cal-client.h (CalClientClass): Made the obj_added and obj_changed signals take in the UIDs, not the full objects. * cal-client.c (obj_added_cb): Likewise. (obj_changed_cb): Likewise. svn path=/trunk/; revision=1666 --- calendar/cal-client/cal-listener.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'calendar/cal-client/cal-listener.c') diff --git a/calendar/cal-client/cal-listener.c b/calendar/cal-client/cal-listener.c index 62db9c287d..fee7e96024 100644 --- a/calendar/cal-client/cal-listener.c +++ b/calendar/cal-client/cal-listener.c @@ -269,14 +269,14 @@ Listener_cal_loaded (PortableServer_Servant servant, /* Listener::obj_added method */ static void Listener_obj_added (PortableServer_Servant servant, - Evolution_Calendar_CalObj calobj, + Evolution_Calendar_CalObjUID uid, CORBA_Environment *ev) { CalListener *listener; listener = CAL_LISTENER (bonobo_object_from_servant (servant)); gtk_signal_emit (GTK_OBJECT (listener), cal_listener_signals[OBJ_ADDED], - calobj); + uid); } /* Listener::obj_removed method */ @@ -295,14 +295,14 @@ Listener_obj_removed (PortableServer_Servant servant, /* Listener::obj_changed method */ static void Listener_obj_changed (PortableServer_Servant servant, - Evolution_Calendar_CalObj calobj, + Evolution_Calendar_CalObjUID uid, CORBA_Environment *ev) { CalListener *listener; listener = CAL_LISTENER (bonobo_object_from_servant (servant)); gtk_signal_emit (GTK_OBJECT (listener), cal_listener_signals[OBJ_CHANGED], - calobj); + uid); } /** -- cgit v1.2.3