aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-10-16 00:50:49 +0800
committerMilan Crha <mcrha@redhat.com>2009-10-16 00:50:49 +0800
commitf2337c65d08897c204e05071abe7cc979e4d02b8 (patch)
treeb243af2ae410db59afb7f02b35e6820d23cbe761
parent971a53bec2bf2ced267f94d1799fa288e08e8c28 (diff)
downloadgsoc2013-evolution-f2337c65d08897c204e05071abe7cc979e4d02b8.tar
gsoc2013-evolution-f2337c65d08897c204e05071abe7cc979e4d02b8.tar.gz
gsoc2013-evolution-f2337c65d08897c204e05071abe7cc979e4d02b8.tar.bz2
gsoc2013-evolution-f2337c65d08897c204e05071abe7cc979e4d02b8.tar.lz
gsoc2013-evolution-f2337c65d08897c204e05071abe7cc979e4d02b8.tar.xz
gsoc2013-evolution-f2337c65d08897c204e05071abe7cc979e4d02b8.tar.zst
gsoc2013-evolution-f2337c65d08897c204e05071abe7cc979e4d02b8.zip
Slightly better error dialog on "Unable to book"
as part of bug #436619
-rw-r--r--calendar/gui/itip-utils.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index 38fcb46bb7..e9f7bb2d82 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -825,8 +825,13 @@ comp_server_send (ECalComponentItipMethod method, ECalComponent *comp, ECal *cli
if (!e_cal_send_objects (client, top_level, users, &returned_icalcomp, &error)) {
/* FIXME Really need a book problem status code */
if (error->code != E_CALENDAR_STATUS_OK) {
- /* FIXME Better error message */
- e_notice (NULL, GTK_MESSAGE_ERROR, "Unable to book");
+ if (error->code == E_CALENDAR_STATUS_OBJECT_ID_ALREADY_EXISTS) {
+ e_notice (NULL, GTK_MESSAGE_ERROR, _("Unable to book a resource, the new event collides with some other."));
+ } else {
+ gchar *msg = g_strconcat (_("Unable to book a resource, error: "), error->message, NULL);
+ e_notice (NULL, GTK_MESSAGE_ERROR, msg);
+ g_free (msg);
+ }
retval = FALSE;
}