diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-05-26 04:41:32 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-05-26 04:41:32 +0800 |
commit | 7dfee05355fb0086563434285ac1a524e78cd2bd (patch) | |
tree | 79bb392a6e972455a18e88076b7a91ba8dd81bab /calendar/gui/dialogs/save-comp.c | |
parent | 64b6b3d827e931ae17281acf72f2de9b259afe0f (diff) | |
download | gsoc2013-evolution-7dfee05355fb0086563434285ac1a524e78cd2bd.tar gsoc2013-evolution-7dfee05355fb0086563434285ac1a524e78cd2bd.tar.gz gsoc2013-evolution-7dfee05355fb0086563434285ac1a524e78cd2bd.tar.bz2 gsoc2013-evolution-7dfee05355fb0086563434285ac1a524e78cd2bd.tar.lz gsoc2013-evolution-7dfee05355fb0086563434285ac1a524e78cd2bd.tar.xz gsoc2013-evolution-7dfee05355fb0086563434285ac1a524e78cd2bd.tar.zst gsoc2013-evolution-7dfee05355fb0086563434285ac1a524e78cd2bd.zip |
Make calendar-errors.xml.h and install the xml file.
2004-05-25 Jeffrey Stedfast <fejj@novell.com>
* Makefile.am: Make calendar-errors.xml.h and install the xml
file.
* calendar-errors.xml: New error definitions file.
* gui/gnome-cal.c (backend_died_cb): Use e-error
* gui/e-tasks.c (backend_died_cb): Use e-error
* gui/dialogs/send-comp.c (send_component_dialog): Use e-error
* gui/dialogs/save-comp.c (save_component_dialog): Use e-error
* gui/dialogs/delete-comp.c (delete_component_dialog): Use e-error
* gui/dialogs/cancel-comp.c (cancel_component_dialog): Use e-error
svn path=/trunk/; revision=26084
Diffstat (limited to 'calendar/gui/dialogs/save-comp.c')
-rw-r--r-- | calendar/gui/dialogs/save-comp.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/calendar/gui/dialogs/save-comp.c b/calendar/gui/dialogs/save-comp.c index e0e8ebb0be..47a4b7221c 100644 --- a/calendar/gui/dialogs/save-comp.c +++ b/calendar/gui/dialogs/save-comp.c @@ -23,14 +23,9 @@ #include <config.h> #endif -#include <glib.h> -#include <libgnome/gnome-i18n.h> -#include <gtk/gtkmessagedialog.h> -#include <gtk/gtkstock.h> -#include <e-util/e-icon-factory.h> +#include "widgets/misc/e-error.h" #include "save-comp.h" - /** * save_component_dialog: @@ -45,28 +40,5 @@ GtkResponseType save_component_dialog (GtkWindow *parent) { - GtkWidget *dialog; - gint r; - - dialog = gtk_message_dialog_new (GTK_WINDOW (parent), - GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, - _("This event has been changed, but has not been saved.\n\n" - "Do you wish to save your changes?")); - - gtk_dialog_add_buttons (GTK_DIALOG (dialog), - _("_Discard Changes"),GTK_RESPONSE_NO, - GTK_STOCK_CANCEL,GTK_RESPONSE_CANCEL, - GTK_STOCK_SAVE, GTK_RESPONSE_YES, - NULL); - - gtk_window_set_icon (GTK_WINDOW (dialog), e_icon_factory_get_icon("stock_calendar", 32)); - gtk_window_set_title (GTK_WINDOW (dialog), _("Save Event")); - gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES); - - r = gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); - - return r; - + return e_error_run (parent, "calendar:prompt-save-appointment", NULL); } |