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.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'calendar/cal-client.c') diff --git a/calendar/cal-client.c b/calendar/cal-client.c index 2125760eb0..63d33610f6 100644 --- a/calendar/cal-client.c +++ b/calendar/cal-client.c @@ -245,17 +245,17 @@ cal_loaded_cb (CalListener *listener, /* Handle the obj_added signal from the listener */ static void -obj_added_cb (CalListener *listener, Evolution_Calendar_CalObj calobj, gpointer data) +obj_added_cb (CalListener *listener, const Evolution_Calendar_CalObjUID uid, gpointer data) { CalClient *client; client = CAL_CLIENT (data); - gtk_signal_emit (GTK_OBJECT (client), cal_client_signals[OBJ_ADDED], calobj); + gtk_signal_emit (GTK_OBJECT (client), cal_client_signals[OBJ_ADDED], uid); } /* Handle the obj_removed signal from the listener */ static void -obj_removed_cb (CalListener *listener, Evolution_Calendar_CalObjUID uid, gpointer data) +obj_removed_cb (CalListener *listener, const Evolution_Calendar_CalObjUID uid, gpointer data) { CalClient *client; @@ -265,12 +265,12 @@ obj_removed_cb (CalListener *listener, Evolution_Calendar_CalObjUID uid, gpointe /* Handle the obj_changed signal from the listener */ static void -obj_changed_cb (CalListener *listener, Evolution_Calendar_CalObj calobj, gpointer data) +obj_changed_cb (CalListener *listener, const Evolution_Calendar_CalObjUID uid, gpointer data) { CalClient *client; client = CAL_CLIENT (data); - gtk_signal_emit (GTK_OBJECT (client), cal_client_signals[OBJ_CHANGED], calobj); + gtk_signal_emit (GTK_OBJECT (client), cal_client_signals[OBJ_CHANGED], uid); } @@ -432,8 +432,9 @@ cal_client_load_calendar (CalClient *client, const char *str_uri) * * Queries a calendar for a calendar object based on its unique identifier. * - * Return value: The string representation of the calendar object corresponding - * to the specified @uid, or NULL if no such object was found. + * Return value: The string representation of a complete calendar wrapping the + * sought object, or NULL if no object had the specified UID. A complete + * calendar is returned because you also need the timezone data. **/ char * cal_client_get_object (CalClient *client, const char *uid) -- cgit