From 2fba11c88fa90dc7b34a1b191ca327f942c47150 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Fri, 24 Aug 2001 19:01:59 +0000 Subject: Instead of using the length of the shortcuts list as the index for the 2001-08-24 Peter Williams * mail-config.c (add_shortcut_entry): Instead of using the length of the shortcuts list as the index for the shortcut, use -1, which means "last". * mail-config-druid.c (druid_finish): Remove the account adding stuff since that happens in wizard_finish now. * mail-config.c (add_new_storage): New function. Add a MailConfigAccount to the shell as a storage. (maybe_add_shortcut): Renamed to new_source_created. (new_source_created): Call add_new_storage here. * component-factory.c (mail_remove_storage_by_uri): Don't warn if the storage isn't remote... no point in making the caller do extra work. svn path=/trunk/; revision=12445 --- mail/mail-config-druid.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'mail/mail-config-druid.c') diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c index f5781cacb9..02834761c5 100644 --- a/mail/mail-config-druid.c +++ b/mail/mail-config-druid.c @@ -185,14 +185,6 @@ static void druid_finish (GnomeDruidPage *page, gpointer arg1, gpointer user_data) { MailConfigDruid *druid = user_data; - MailConfigAccount *account; - GSList *mini; - - /* Load up this new account */ - account = gtk_object_get_data (GTK_OBJECT (account_wizard), "account-data"); - mini = g_slist_prepend (NULL, account); - mail_load_storages (druid->shell, mini, TRUE); - g_slist_free (mini); gtk_object_set_data (GTK_OBJECT (account_wizard), "account-data", NULL); gtk_widget_destroy (GTK_WIDGET (druid)); -- cgit