diff options
author | JP Rosevear <jpr@ximian.com> | 2003-04-25 09:57:55 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-04-25 09:57:55 +0800 |
commit | 90dc62f9e598a84a4300f06c329c288b5171e159 (patch) | |
tree | 68b221e9882bf02db332804f00ecbe340e2c481c /calendar/gui/e-itip-control.c | |
parent | 8f4d9f83b2d7a561840c39d3abefb4cec2b9b87e (diff) | |
download | gsoc2013-evolution-90dc62f9e598a84a4300f06c329c288b5171e159.tar gsoc2013-evolution-90dc62f9e598a84a4300f06c329c288b5171e159.tar.gz gsoc2013-evolution-90dc62f9e598a84a4300f06c329c288b5171e159.tar.bz2 gsoc2013-evolution-90dc62f9e598a84a4300f06c329c288b5171e159.tar.lz gsoc2013-evolution-90dc62f9e598a84a4300f06c329c288b5171e159.tar.xz gsoc2013-evolution-90dc62f9e598a84a4300f06c329c288b5171e159.tar.zst gsoc2013-evolution-90dc62f9e598a84a4300f06c329c288b5171e159.zip |
Fixes #37552
2003-04-24 JP Rosevear <jpr@ximian.com>
Fixes #37552
* gui/dialogs/Makefile.am: build delete-error.[hc]
* gui/e-tasks.c: wrap calls to cal_client_remove_object with
delete_error_dialog
* gui/e-itip-control.c: ditto
* gui/e-calendar-table.c: ditto
* gui/e-week-view.c: ditto
* gui/e-day-view.c: ditto
* gui/dialogs/delete-error.[hc]: gemerate an error message based
on result
svn path=/trunk/; revision=20961
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r-- | calendar/gui/e-itip-control.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index b751015d6e..89434d02c8 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -51,6 +51,7 @@ #include <evolution-shell-client.h> #include <evolution-folder-selector-button.h> #include <camel/camel-mime-filter-tohtml.h> +#include "dialogs/delete-error.h" #include "calendar-config.h" #include "itip-utils.h" #include "e-itip-control.h" @@ -2036,7 +2037,8 @@ remove_item (EItipControl *itip) CalComponentVType type; const char *uid; GtkWidget *dialog; - + CalClientResult result; + priv = itip->priv; type = cal_component_get_vtype (priv->comp); @@ -2049,10 +2051,13 @@ remove_item (EItipControl *itip) return; cal_component_get_uid (priv->comp, &uid); - if (cal_client_remove_object (client, uid) == CAL_CLIENT_RESULT_SUCCESS) { + result = cal_client_remove_object (client, uid); + if (result == CAL_CLIENT_RESULT_SUCCESS || result == CAL_CLIENT_RESULT_NOT_FOUND) { dialog = gnome_ok_dialog (_("Removal Complete")); gnome_dialog_run_and_close (GNOME_DIALOG (dialog)); - } + } else { + delete_error_dialog (result, type); + } } static void |