diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-01-22 15:09:39 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 2000-01-22 15:09:39 +0800 |
commit | 101996359f684e0282f1261f92f54d5b10e1ddb3 (patch) | |
tree | 94006182b470ca2e6794e04c84613d4aec6d6156 /calendar/cal-listener.h | |
parent | 84423c930ecc93ce93040bfd49e20c68670d4364 (diff) | |
download | gsoc2013-evolution-101996359f684e0282f1261f92f54d5b10e1ddb3.tar gsoc2013-evolution-101996359f684e0282f1261f92f54d5b10e1ddb3.tar.gz gsoc2013-evolution-101996359f684e0282f1261f92f54d5b10e1ddb3.tar.bz2 gsoc2013-evolution-101996359f684e0282f1261f92f54d5b10e1ddb3.tar.lz gsoc2013-evolution-101996359f684e0282f1261f92f54d5b10e1ddb3.tar.xz gsoc2013-evolution-101996359f684e0282f1261f92f54d5b10e1ddb3.tar.zst gsoc2013-evolution-101996359f684e0282f1261f92f54d5b10e1ddb3.zip |
Take in a GnomeVFSURI, not a string.
2000-01-22 Federico Mena Quintero <federico@helixcode.com>
* 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
Diffstat (limited to 'calendar/cal-listener.h')
-rw-r--r-- | calendar/cal-listener.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/calendar/cal-listener.h b/calendar/cal-listener.h index 41665b2b58..c8d26dab80 100644 --- a/calendar/cal-listener.h +++ b/calendar/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); |