From e21fe755599c9a1b23ba83cc92d1ed12c8821cf4 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 3 Jan 2005 20:20:06 +0000 Subject: remove unused message 2005-01-03 JP Rosevear * org-gnome-itip-formatter-errors.xml: remove unused message * itip-formatter.c (update_item): use info item, not e-error svn path=/trunk/; revision=28223 --- plugins/itip-formatter/itip-formatter.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'plugins/itip-formatter/itip-formatter.c') diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index a4c084c728..36367c5677 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -622,6 +622,7 @@ update_item (FormatItipPObject *pitip, ItipViewResponse response) struct icaltimetype stamp; icalproperty *prop; icalcomponent *clone; + ESource *source; GError *error = NULL; /* Set X-MICROSOFT-CDO-REPLYTIME to record the time at which @@ -642,18 +643,19 @@ update_item (FormatItipPObject *pitip, ItipViewResponse response) icalcomponent_add_component (pitip->top_level, clone); icalcomponent_set_method (pitip->top_level, pitip->method); + source = e_cal_get_source (pitip->current_ecal); + if (!e_cal_receive_objects (pitip->current_ecal, pitip->top_level, &error)) { - /* FIXME Really use e_error? or should it just be an info item */ -// e_error_run (NULL, "org.gnome.itip-formatter:meeting-update-failed", error->message, NULL); + itip_view_add_lower_info_item_printf (ITIP_VIEW (pitip->view), ITIP_VIEW_INFO_ITEM_TYPE_INFO, + _("Unable to send item to calendar '%s'. %s"), + e_source_peek_name (source), error->message); g_error_free (error); } else { - ESource *source; /* FIXME This makes the UI look ugly */ itip_view_set_source_list (ITIP_VIEW (pitip->view), NULL); itip_view_clear_lower_info_items (ITIP_VIEW (pitip->view)); - source = e_cal_get_source (pitip->current_ecal); switch (response) { case ITIP_VIEW_RESPONSE_ACCEPT: -- cgit