diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2002-05-17 02:04:00 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2002-05-17 02:04:00 +0800 |
commit | 3a868a57bb55512cf7315b3178d9557d6350be32 (patch) | |
tree | cfa6e6d85e1c77944ddd7e193d5a00682e587a03 /calendar/cal-client | |
parent | 48140af35f90d7ec4f994821a5265b1fe0159cfa (diff) | |
download | gsoc2013-evolution-3a868a57bb55512cf7315b3178d9557d6350be32.tar gsoc2013-evolution-3a868a57bb55512cf7315b3178d9557d6350be32.tar.gz gsoc2013-evolution-3a868a57bb55512cf7315b3178d9557d6350be32.tar.bz2 gsoc2013-evolution-3a868a57bb55512cf7315b3178d9557d6350be32.tar.lz gsoc2013-evolution-3a868a57bb55512cf7315b3178d9557d6350be32.tar.xz gsoc2013-evolution-3a868a57bb55512cf7315b3178d9557d6350be32.tar.zst gsoc2013-evolution-3a868a57bb55512cf7315b3178d9557d6350be32.zip |
added support for CAL_CLIENT_OPEN_PERMISSION_DENIED error code.
2002-05-16 Rodrigo Moya <rodrigo@ximian.com>
* gui/gnome-cal.c (client_cal_opened_cb): added support for
CAL_CLIENT_OPEN_PERMISSION_DENIED error code.
(permission_error): new function to display 'Permission Denied'
error message when opening the calendar.
* gui/e-tasks.c: likewise.
* idl/evolution-calendar.idl: added PERMISSION_DENIED to Listener's
OpenStatus enumeration.
* cal-client/cal-client.c (cal_opened_cb): added code for retrieving
'Permission Denied' errors, and convert it to CalClientOpenStatus
values.
* pcs/cal-factory.c (open_backend): added code for informing of
'Permission Denied' errors.
svn path=/trunk/; revision=16933
Diffstat (limited to 'calendar/cal-client')
-rw-r--r-- | calendar/cal-client/cal-client.c | 4 | ||||
-rw-r--r-- | calendar/cal-client/cal-client.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c index 612da541f5..17f1d2a4fb 100644 --- a/calendar/cal-client/cal-client.c +++ b/calendar/cal-client/cal-client.c @@ -408,6 +408,10 @@ cal_opened_cb (CalListener *listener, client_status = CAL_CLIENT_OPEN_METHOD_NOT_SUPPORTED; goto error; + case GNOME_Evolution_Calendar_Listener_PERMISSION_DENIED : + client_status = CAL_CLIENT_OPEN_PERMISSION_DENIED; + goto error; + default: g_assert_not_reached (); } diff --git a/calendar/cal-client/cal-client.h b/calendar/cal-client/cal-client.h index 4a977e5a56..578edd4ee9 100644 --- a/calendar/cal-client/cal-client.h +++ b/calendar/cal-client/cal-client.h @@ -47,6 +47,7 @@ typedef enum { CAL_CLIENT_OPEN_SUCCESS, CAL_CLIENT_OPEN_ERROR, CAL_CLIENT_OPEN_NOT_FOUND, + CAL_CLIENT_OPEN_PERMISSION_DENIED, CAL_CLIENT_OPEN_METHOD_NOT_SUPPORTED } CalClientOpenStatus; |