diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-12-07 09:05:28 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-12-07 09:05:28 +0800 |
commit | 591a66f4ebc8aea2dd0bf480ca2181ff91a33bf6 (patch) | |
tree | 4bc1247343cc59b4d350993a8ce9bfc622300b98 | |
parent | 3afd674b0795d65e478d16da034d5d1fbbf737a4 (diff) | |
download | gsoc2013-evolution-591a66f4ebc8aea2dd0bf480ca2181ff91a33bf6.tar.gz gsoc2013-evolution-591a66f4ebc8aea2dd0bf480ca2181ff91a33bf6.tar.zst gsoc2013-evolution-591a66f4ebc8aea2dd0bf480ca2181ff91a33bf6.zip |
Confirm before deleting the event.
2000-12-06 Federico Mena Quintero <federico@helixcode.com>
* gui/event-editor.c (file_delete_cb): Confirm before deleting the
event.
svn path=/trunk/; revision=6833
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/event-editor.c | 18 |
2 files changed, 17 insertions, 8 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 1d99df64b0..db57fe6d09 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,4 +1,9 @@ -2000-12-06 <purify@the-dot-in.helixcode.com> +2000-12-06 Federico Mena Quintero <federico@helixcode.com> + + * gui/event-editor.c (file_delete_cb): Confirm before deleting the + event. + +2000-12-06 JP Rosevear <jpr@helixcode.com> * gui/e-week-view.c (e_week_view_init): unref the pixbuf when finished with it diff --git a/calendar/gui/event-editor.c b/calendar/gui/event-editor.c index 139ce84efa..97daa77fce 100644 --- a/calendar/gui/event-editor.c +++ b/calendar/gui/event-editor.c @@ -30,6 +30,7 @@ #include <widgets/misc/e-dateedit.h> #include <gal/widgets/e-unicode.h> #include <cal-util/timeutil.h> +#include "dialogs/delete-comp.h" #include "calendar-config.h" #include "event-editor.h" #include "e-meeting-edit.h" @@ -2309,7 +2310,6 @@ file_delete_cb (GtkWidget *widget, gpointer data) { EventEditor *ee; EventEditorPrivate *priv; - const char *uid; ee = EVENT_EDITOR (data); @@ -2319,14 +2319,18 @@ file_delete_cb (GtkWidget *widget, gpointer data) g_return_if_fail (priv->comp); - cal_component_get_uid (priv->comp, &uid); + if (delete_component_dialog (priv->comp)) { + const char *uid; - /* We don't check the return value; FALSE can mean the object was not in - * the server anyways. - */ - cal_client_remove_object (priv->client, uid); + cal_component_get_uid (priv->comp, &uid); - close_dialog (ee); + /* We don't check the return value; FALSE can mean the object + * was not in the server anyways. + */ + cal_client_remove_object (priv->client, uid); + + close_dialog (ee); + } } /* File/Close callback */ |