aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-itip-control.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-05-12 06:05:03 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-05-12 06:05:03 +0800
commit0bdbb230d227325cc474ca1cfb5215a2edd78ae2 (patch)
tree3ea4661dcb5d267a3389088080e55d8784eb083a /calendar/gui/e-itip-control.c
parent3957b2480e8f4c50812c99b59236a35d2f5bdfe3 (diff)
downloadgsoc2013-evolution-0bdbb230d227325cc474ca1cfb5215a2edd78ae2.tar
gsoc2013-evolution-0bdbb230d227325cc474ca1cfb5215a2edd78ae2.tar.gz
gsoc2013-evolution-0bdbb230d227325cc474ca1cfb5215a2edd78ae2.tar.bz2
gsoc2013-evolution-0bdbb230d227325cc474ca1cfb5215a2edd78ae2.tar.lz
gsoc2013-evolution-0bdbb230d227325cc474ca1cfb5215a2edd78ae2.tar.xz
gsoc2013-evolution-0bdbb230d227325cc474ca1cfb5215a2edd78ae2.tar.zst
gsoc2013-evolution-0bdbb230d227325cc474ca1cfb5215a2edd78ae2.zip
get error information from the call to e_cal_receive_objects, and use that
2004-05-11 Rodrigo Moya <rodrigo@ximian.com> * gui/e-itip-control.c (update_item): get error information from the call to e_cal_receive_objects, and use that as the error message. svn path=/trunk/; revision=25862
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r--calendar/gui/e-itip-control.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index 0cc1b06cd9..13bce78ec9 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -1740,6 +1740,7 @@ update_item (EItipControl *itip)
icalproperty *prop;
icalcomponent *clone;
GtkWidget *dialog;
+ GError *error = NULL;
priv = itip->priv;
@@ -1761,9 +1762,9 @@ update_item (EItipControl *itip)
icalcomponent_add_component (priv->top_level, clone);
icalcomponent_set_method (priv->top_level, priv->method);
- /* FIXME Better error dialog */
- if (!e_cal_receive_objects (priv->current_ecal, priv->top_level, NULL)) {
- dialog = gnome_warning_dialog (_("Calendar file could not be updated!\n"));
+ if (!e_cal_receive_objects (priv->current_ecal, priv->top_level, &error)) {
+ dialog = gnome_warning_dialog (error->message);
+ g_error_free (error);
} else {
dialog = gnome_ok_dialog (_("Update complete\n"));
}