diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2004-05-12 06:05:03 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-05-12 06:05:03 +0800 |
commit | 0bdbb230d227325cc474ca1cfb5215a2edd78ae2 (patch) | |
tree | 3ea4661dcb5d267a3389088080e55d8784eb083a /calendar | |
parent | 3957b2480e8f4c50812c99b59236a35d2f5bdfe3 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/e-itip-control.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index e45c4c23ba..ece744dd01 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +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. + 2004-05-11 Dan Winship <danw@ximian.com> * gui/GNOME_Evolution_Calendar.server.in.in: Remove the calendar 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")); } |