From 101996359f684e0282f1261f92f54d5b10e1ddb3 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sat, 22 Jan 2000 07:09:39 +0000 Subject: Take in a GnomeVFSURI, not a string. 2000-01-22 Federico Mena Quintero * cal-backend.c (cal_backend_load): Take in a GnomeVFSURI, not a string. * cal-listener.c (Listener_cal_loaded): Pass the load status to the signal. (cal_listener_destroy): Better error checking. (cal_listener_new): Better error checking. * cal-listener.h (CalListenerLoadStatus): New enum for the load status of a calendar. (CalListenerClass): Added the status argument to the cal_loaded signal. * gnome-calendar.idl (cal_loaded): Added a load status code. * cal-backend.h (CalBackendLoadStatus): Renamed from CalBackendLoadResult. svn path=/trunk/; revision=1607 --- calendar/cal-client/cal-listener.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'calendar/cal-client/cal-listener.h') diff --git a/calendar/cal-client/cal-listener.h b/calendar/cal-client/cal-listener.h index 41665b2b58..c8d26dab80 100644 --- a/calendar/cal-client/cal-listener.h +++ b/calendar/cal-client/cal-listener.h @@ -40,6 +40,12 @@ BEGIN_GNOME_DECLS typedef struct _CalListener CalListener; typedef struct _CalListenerClass CalListenerClass; +/* Load status for the cal_loaded signal. We need better error reporting. */ +typedef enum { + CAL_LISTENER_LOAD_SUCCESS, + CAL_LISTENER_LOAD_ERROR +} CalListenerLoadStatus; + struct _CalListener { GnomeObject object; @@ -50,7 +56,9 @@ struct _CalListener { struct _CalListenerClass { GnomeObjectClass parent_class; - void (* cal_loaded) (CalListener *listener, GNOME_Calendar_Cal cal); + void (* cal_loaded) (CalListener *listener, + CalListenerLoadStatus status, + GNOME_Calendar_Cal cal); void (* obj_added) (CalListener *listener, GNOME_Calendar_CalObj calobj); void (* obj_removed) (CalListener *listener, GNOME_Calendar_CalObjUID uid); void (* obj_changed) (CalListener *listener, GNOME_Calendar_CalObj calobj); -- cgit v1.2.3