[evolution] Revert "Bug #686620 - Add an option to skip New Account autodiscovery"



commit e8797d1ed9a99e13fc3f5fdaac0cfc8869d2839a
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Nov 8 05:49:23 2012 -0500

    Revert "Bug #686620 - Add an option to skip New Account autodiscovery"
    
    This reverts commit 039c29c112179ad92233f0a85b7332ad2f2dd373.
    
    Auto-configuration should instead be cancellable from the progress page.

 mail/e-mail-config-assistant.c     |   23 -----------
 mail/e-mail-config-identity-page.c |   77 +-----------------------------------
 mail/e-mail-config-identity-page.h |    7 ---
 3 files changed, 1 insertions(+), 106 deletions(-)
---
diff --git a/mail/e-mail-config-assistant.c b/mail/e-mail-config-assistant.c
index 515be98..407d076 100644
--- a/mail/e-mail-config-assistant.c
+++ b/mail/e-mail-config-assistant.c
@@ -46,7 +46,6 @@ struct _EMailConfigAssistantPrivate {
 	EMailConfigServicePage *receiving_page;
 	EMailConfigServicePage *sending_page;
 	EMailConfigSummaryPage *summary_page;
-	EMailConfigPage *identity_page;
 	EMailConfigPage *lookup_page;
 	GHashTable *visited_pages;
 	gboolean auto_configure_done;
@@ -452,11 +451,6 @@ mail_config_assistant_dispose (GObject *object)
 		priv->lookup_page = NULL;
 	}
 
-	if (priv->identity_page != NULL) {
-		g_object_unref (priv->identity_page);
-		priv->identity_page = NULL;
-	}
-
 	g_ptr_array_set_size (priv->account_sources, 0);
 	g_ptr_array_set_size (priv->transport_sources, 0);
 
@@ -494,7 +488,6 @@ mail_config_assistant_constructed (GObject *object)
 	ESourceMailSubmission *mail_submission_extension;
 	EMailSession *session;
 	EMailConfigPage *page;
-	GtkWidget *autodiscover_check;
 	GList *list, *link;
 	const gchar *extension_name;
 	const gchar *title;
@@ -557,12 +550,7 @@ mail_config_assistant_constructed (GObject *object)
 		E_MAIL_CONFIG_IDENTITY_PAGE (page), FALSE);
 	e_mail_config_identity_page_set_show_signatures (
 		E_MAIL_CONFIG_IDENTITY_PAGE (page), FALSE);
-	e_mail_config_identity_page_set_show_autodiscover_check (
-		E_MAIL_CONFIG_IDENTITY_PAGE (page), TRUE);
-	autodiscover_check = e_mail_config_identity_page_get_autodiscover_check (
-		E_MAIL_CONFIG_IDENTITY_PAGE (page));
 	e_mail_config_assistant_add_page (assistant, page);
-	assistant->priv->identity_page = g_object_ref (page);
 
 	/*** Lookup Page ***/
 
@@ -570,11 +558,6 @@ mail_config_assistant_constructed (GObject *object)
 	e_mail_config_assistant_add_page (assistant, page);
 	assistant->priv->lookup_page = g_object_ref (page);
 
-	g_object_bind_property (
-		autodiscover_check, "active",
-		page, "visible",
-		G_BINDING_SYNC_CREATE);
-
 	/*** Receiving Page ***/
 
 	page = e_mail_config_receiving_page_new (registry);
@@ -809,12 +792,6 @@ mail_config_assistant_prepare (GtkAssistant *assistant,
 		email_address = e_source_mail_identity_get_address (extension);
 		e_source_set_display_name (source, email_address);
 	}
-
-	if (first_visit && (
-	    E_IS_MAIL_CONFIG_LOOKUP_PAGE (page) ||
-	    E_IS_MAIL_CONFIG_RECEIVING_PAGE (page)))
-		e_mail_config_identity_page_set_show_autodiscover_check (
-			E_MAIL_CONFIG_IDENTITY_PAGE (priv->identity_page), FALSE);
 }
 
 static void
diff --git a/mail/e-mail-config-identity-page.c b/mail/e-mail-config-identity-page.c
index ce7102d..40b18f4 100644
--- a/mail/e-mail-config-identity-page.c
+++ b/mail/e-mail-config-identity-page.c
@@ -38,8 +38,6 @@ struct _EMailConfigIdentityPagePrivate {
 	gboolean show_email_address;
 	gboolean show_instructions;
 	gboolean show_signatures;
-	gboolean show_autodiscover_check;
-	GtkWidget *autodiscover_check; /* not referenced */
 };
 
 enum {
@@ -49,8 +47,7 @@ enum {
 	PROP_SHOW_ACCOUNT_INFO,
 	PROP_SHOW_EMAIL_ADDRESS,
 	PROP_SHOW_INSTRUCTIONS,
-	PROP_SHOW_SIGNATURES,
-	PROP_SHOW_AUTODISCOVER_CHECK
+	PROP_SHOW_SIGNATURES
 };
 
 /* Forward Declarations */
@@ -154,12 +151,6 @@ mail_config_identity_page_set_property (GObject *object,
 				E_MAIL_CONFIG_IDENTITY_PAGE (object),
 				g_value_get_boolean (value));
 			return;
-
-		case PROP_SHOW_AUTODISCOVER_CHECK:
-			e_mail_config_identity_page_set_show_autodiscover_check (
-				E_MAIL_CONFIG_IDENTITY_PAGE (object),
-				g_value_get_boolean (value));
-			return;
 	}
 
 	G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
@@ -213,13 +204,6 @@ mail_config_identity_page_get_property (GObject *object,
 				e_mail_config_identity_page_get_show_signatures (
 				E_MAIL_CONFIG_IDENTITY_PAGE (object)));
 			return;
-
-		case PROP_SHOW_AUTODISCOVER_CHECK:
-			g_value_set_boolean (
-				value,
-				e_mail_config_identity_page_get_show_autodiscover_check (
-				E_MAIL_CONFIG_IDENTITY_PAGE (object)));
-			return;
 	}
 
 	G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
@@ -277,8 +261,6 @@ mail_config_identity_page_constructed (GObject *object)
 		GTK_ORIENTABLE (page), GTK_ORIENTATION_VERTICAL);
 
 	gtk_box_set_spacing (GTK_BOX (page), 12);
-	gtk_widget_set_valign (GTK_WIDGET (page), GTK_ALIGN_FILL);
-	gtk_widget_set_vexpand (GTK_WIDGET (page), TRUE);
 
 	/* This keeps all mnemonic labels the same width. */
 	size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
@@ -555,22 +537,6 @@ mail_config_identity_page_constructed (GObject *object)
 	g_object_unref (size_group);
 
 	e_extensible_load_extensions (E_EXTENSIBLE (page));
-
-	widget = gtk_check_button_new_with_mnemonic (_("Try _setup account automatically, based on Email Address"));
-	g_object_set (G_OBJECT (widget),
-		"valign", GTK_ALIGN_END,
-		"vexpand", TRUE,
-		"active", TRUE,
-		NULL);
-
-	g_object_bind_property (
-		page, "show-autodiscover-check",
-		widget, "visible",
-		G_BINDING_SYNC_CREATE);
-
-	page->priv->autodiscover_check = widget;
-
-	gtk_container_add (GTK_CONTAINER (page), widget);
 }
 
 static gboolean
@@ -705,18 +671,6 @@ e_mail_config_identity_page_class_init (EMailConfigIdentityPageClass *class)
 			G_PARAM_READWRITE |
 			G_PARAM_CONSTRUCT |
 			G_PARAM_STATIC_STRINGS));
-
-	g_object_class_install_property (
-		object_class,
-		PROP_SHOW_AUTODISCOVER_CHECK,
-		g_param_spec_boolean (
-			"show-autodiscover-check",
-			"Show Autodiscover Check",
-			"Show check button to allow autodiscover based on Email Address",
-			FALSE,
-			G_PARAM_READWRITE |
-			G_PARAM_CONSTRUCT |
-			G_PARAM_STATIC_STRINGS));
 }
 
 static void
@@ -851,32 +805,3 @@ e_mail_config_identity_page_set_show_signatures (EMailConfigIdentityPage *page,
 	g_object_notify (G_OBJECT (page), "show-signatures");
 }
 
-void
-e_mail_config_identity_page_set_show_autodiscover_check (EMailConfigIdentityPage *page,
-							 gboolean show_autodiscover)
-{
-	g_return_if_fail (E_IS_MAIL_CONFIG_IDENTITY_PAGE (page));
-
-	if ((page->priv->show_autodiscover_check ? 1 : 0) == (show_autodiscover ? 1 : 0))
-		return;
-
-	page->priv->show_autodiscover_check = show_autodiscover;
-
-	g_object_notify (G_OBJECT (page), "show-autodiscover-check");
-}
-
-gboolean
-e_mail_config_identity_page_get_show_autodiscover_check (EMailConfigIdentityPage *page)
-{
-	g_return_val_if_fail (E_IS_MAIL_CONFIG_IDENTITY_PAGE (page), FALSE);
-
-	return page->priv->show_autodiscover_check;
-}
-
-GtkWidget *
-e_mail_config_identity_page_get_autodiscover_check (EMailConfigIdentityPage *page)
-{
-	g_return_val_if_fail (E_IS_MAIL_CONFIG_IDENTITY_PAGE (page), NULL);
-
-	return page->priv->autodiscover_check;
-}
diff --git a/mail/e-mail-config-identity-page.h b/mail/e-mail-config-identity-page.h
index df6e91f..02a3c16 100644
--- a/mail/e-mail-config-identity-page.h
+++ b/mail/e-mail-config-identity-page.h
@@ -90,13 +90,6 @@ gboolean	e_mail_config_identity_page_get_show_signatures
 void		e_mail_config_identity_page_set_show_signatures
 						(EMailConfigIdentityPage *page,
 						 gboolean show_signatures);
-void		e_mail_config_identity_page_set_show_autodiscover_check
-						(EMailConfigIdentityPage *page,
-						 gboolean show_autodiscover);
-gboolean	e_mail_config_identity_page_get_show_autodiscover_check
-						(EMailConfigIdentityPage *page);
-GtkWidget *	e_mail_config_identity_page_get_autodiscover_check
-						(EMailConfigIdentityPage *page);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]