From e84ebd2e0a9ff78773bdd2cecfe0f2b6ebc2c252 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Wed, 22 Aug 2001 15:50:42 +0000 Subject: Prevent the user from creating two accounts with the same name. 2001-08-22 Peter Williams Prevent the user from creating two accounts with the same name. * mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount): Abort if the account has the same name as another account. * mail-account-gui.c (mail_account_gui_save): Don't let the user save if the account has the same name as another account. * mail-config-druid.c (management_check): Disable the next button if the account name is the same as a preexisting account. (construct): The only part of 'pages' that was being used was the name. 'wizard_pages' now has the callbacks, while 'pages' is just an array of char *'s. (wizard_finish_cb): Save the account first because that's the right way, and try to honor mail_account_gui_save's return value. * mail-config.glade: Add a label noting that you're not allowed to create two accounts with the same name. svn path=/trunk/; revision=12384 --- mail/mail-config.glade | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'mail/mail-config.glade') diff --git a/mail/mail-config.glade b/mail/mail-config.glade index 6dbce2a568..73309bdf1a 100644 --- a/mail/mail-config.glade +++ b/mail/mail-config.glade @@ -251,6 +251,23 @@ Click "Finish" to save your settings. False 0 + + GtkLabel + label40 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 4 + 0 + + 0 + False + False + + + GtkHBox hbox24 -- cgit