From e23cf1ca36bcf886bcac15545166eff0e930a4bd Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 28 Apr 2004 06:39:25 +0000 Subject: ** Changed error messages to use EError. 2004-04-28 Not Zed ** Changed error messages to use EError. svn path=/trunk/; revision=25653 --- mail/mail-account-gui.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mail/mail-account-gui.c') diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index 33d61d1705..bc3eaba006 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -22,7 +22,6 @@ * */ - #ifdef HAVE_CONFIG_H #include #endif @@ -36,9 +35,10 @@ #include #include -#include #include +#include + #include "em-account-prefs.h" #include "em-folder-selection-button.h" #include "mail-account-gui.h" @@ -2266,7 +2266,8 @@ mail_account_gui_save (MailAccountGui *gui) account = mail_config_get_account_by_name (new_name); if (account && account != new) { - e_notice (gui->account_name, GTK_MESSAGE_ERROR, _("You may not create two accounts with the same name.")); + e_error_run((GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)gui->account_name), + "mail:account-notunique", NULL); return FALSE; } -- cgit v1.2.3