diff options
author | Not Zed <NotZed@Ximian.com> | 2004-04-28 14:39:25 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-04-28 14:39:25 +0800 |
commit | e23cf1ca36bcf886bcac15545166eff0e930a4bd (patch) | |
tree | 22462408dc2fe4da0306bb472cdd6239d739b650 /mail/em-account-prefs.c | |
parent | 9e7d28c8bc1c14cbb627f0375a60c312c5569536 (diff) | |
download | gsoc2013-evolution-e23cf1ca36bcf886bcac15545166eff0e930a4bd.tar.gz gsoc2013-evolution-e23cf1ca36bcf886bcac15545166eff0e930a4bd.tar.zst gsoc2013-evolution-e23cf1ca36bcf886bcac15545166eff0e930a4bd.zip |
** Changed error messages to use EError.
2004-04-28 Not Zed <NotZed@Ximian.com>
** Changed error messages to use EError.
svn path=/trunk/; revision=25653
Diffstat (limited to 'mail/em-account-prefs.c')
-rw-r--r-- | mail/em-account-prefs.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/mail/em-account-prefs.c b/mail/em-account-prefs.c index 91de5e5f87..e7530a0041 100644 --- a/mail/em-account-prefs.c +++ b/mail/em-account-prefs.c @@ -37,6 +37,7 @@ #include "mail-send-recv.h" #include "e-util/e-account-list.h" +#include "widgets/misc/e-error.h" #include "em-account-prefs.h" @@ -202,7 +203,6 @@ account_delete_clicked (GtkButton *button, gpointer user_data) EAccount *account = NULL; EAccountList *accounts; GtkTreeModel *model; - GtkWidget *confirm; GtkTreeIter iter; int ans; @@ -214,24 +214,7 @@ account_delete_clicked (GtkButton *button, gpointer user_data) if (account == NULL || prefs->editor != NULL) return; - confirm = gtk_message_dialog_new (PREFS_WINDOW (prefs), - GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, - _("Are you sure you want to delete this account?")); - - button = (GtkButton *) gtk_button_new_from_stock (GTK_STOCK_YES); - gtk_button_set_label (button, _("Delete")); - gtk_dialog_add_action_widget ((GtkDialog *) confirm, (GtkWidget *) button, GTK_RESPONSE_YES); - gtk_widget_show ((GtkWidget *) button); - - button = (GtkButton *) gtk_button_new_from_stock (GTK_STOCK_NO); - gtk_button_set_label (button, _("Don't delete")); - gtk_dialog_add_action_widget ((GtkDialog *) confirm, (GtkWidget *) button, GTK_RESPONSE_NO); - gtk_widget_show ((GtkWidget *) button); - - ans = gtk_dialog_run ((GtkDialog *) confirm); - gtk_widget_destroy (confirm); - + ans = e_error_run(PREFS_WINDOW(prefs), "mail:ask-account-delete", NULL); if (ans == GTK_RESPONSE_YES) { int len; |