aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r--mail/mail-account-gui.c7
1 files changed, 4 insertions, 3 deletions
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 <config.h>
#endif
@@ -36,9 +35,10 @@
#include <gconf/gconf-client.h>
#include <e-util/e-account-list.h>
-#include <e-util/e-dialog-utils.h>
#include <e-util/e-signature-list.h>
+#include <widgets/misc/e-error.h>
+
#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;
}