diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-02-06 05:06:54 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-02-06 05:06:54 +0800 |
commit | f5ab7142647eaee7b701bc49bc8ce1ba0f3455fb (patch) | |
tree | c1a59eae770ec72dda8266ceda944ea2f1a6f0d9 | |
parent | f7926820edcccd0d5fdab952909793e5752253ef (diff) | |
download | gsoc2013-evolution-f5ab7142647eaee7b701bc49bc8ce1ba0f3455fb.tar gsoc2013-evolution-f5ab7142647eaee7b701bc49bc8ce1ba0f3455fb.tar.gz gsoc2013-evolution-f5ab7142647eaee7b701bc49bc8ce1ba0f3455fb.tar.bz2 gsoc2013-evolution-f5ab7142647eaee7b701bc49bc8ce1ba0f3455fb.tar.lz gsoc2013-evolution-f5ab7142647eaee7b701bc49bc8ce1ba0f3455fb.tar.xz gsoc2013-evolution-f5ab7142647eaee7b701bc49bc8ce1ba0f3455fb.tar.zst gsoc2013-evolution-f5ab7142647eaee7b701bc49bc8ce1ba0f3455fb.zip |
Keep track of the CheckSettings check boxes. (transport_next): Connect if
2001-02-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (construct): Keep track of the CheckSettings
check boxes.
(transport_next): Connect if the user says so.
(incoming_next): Same. Also, don't jump to the next page if
test-settings fails.
svn path=/trunk/; revision=7984
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | mail/mail-config-druid.c | 17 | ||||
-rw-r--r-- | mail/mail-config-druid.h | 2 | ||||
-rw-r--r-- | mail/mail-config.glade | 71 | ||||
-rw-r--r-- | mail/mail-config.glade.h | 2 |
5 files changed, 57 insertions, 43 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index bc327f4be9..11c6df36e7 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,13 @@ 2001-02-05 Jeffrey Stedfast <fejj@ximian.com> + * mail-config-druid.c (construct): Keep track of the CheckSettings + check boxes. + (transport_next): Connect if the user says so. + (incoming_next): Same. Also, don't jump to the next page if + test-settings fails. + +2001-02-05 Jeffrey Stedfast <fejj@ximian.com> + * mail-config-druid.c (incoming_next): Updated to not connect when getting a list of authtypes. (transport_next): No longer connects - again, this is diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c index 5547f8791a..4e164cccbc 100644 --- a/mail/mail-config-druid.c +++ b/mail/mail-config-druid.c @@ -333,6 +333,7 @@ incoming_next (GnomeDruidPage *page, GnomeDruid *druid, gpointer data) GtkWidget *transport_page; GList *authtypes = NULL; gchar *source_url; + gboolean connect; CamelURL *url; config->have_auth_page = TRUE; @@ -353,8 +354,10 @@ incoming_next (GnomeDruidPage *page, GnomeDruid *druid, gpointer data) url = camel_url_new (source_url, NULL); g_free (source_url); + connect = GTK_TOGGLE_BUTTON (config->incoming_check_settings)->active; + /* If we can't connect, warn them and continue on to the Transport page. */ - if (!mail_config_check_service (url, CAMEL_PROVIDER_STORE, FALSE, &authtypes)) { + if (!mail_config_check_service (url, CAMEL_PROVIDER_STORE, connect, &authtypes)) { GtkWidget *dialog; char *source, *warning; @@ -370,11 +373,6 @@ incoming_next (GnomeDruidPage *page, GnomeDruid *druid, gpointer data) gnome_dialog_run_and_close (GNOME_DIALOG (dialog)); - /* Skip to transport page. */ - config->have_auth_page = FALSE; - transport_page = glade_xml_get_widget (config->gui, "druidTransportPage"); - gnome_druid_set_page (config->druid, GNOME_DRUID_PAGE (transport_page)); - return TRUE; } camel_url_free (url); @@ -627,6 +625,7 @@ static gboolean transport_next (GnomeDruidPage *page, GnomeDruid *druid, gpointer data) { MailConfigDruid *config = data; + gboolean connect; gchar *xport_url; CamelURL *url; @@ -634,8 +633,10 @@ transport_next (GnomeDruidPage *page, GnomeDruid *druid, gpointer data) url = camel_url_new (xport_url, NULL); g_free (xport_url); + connect = GTK_TOGGLE_BUTTON (config->outgoing_check_settings)->active; + /* If we can't connect, don't let them continue. */ - if (!mail_config_check_service (url, CAMEL_PROVIDER_TRANSPORT, FALSE, NULL)) { + if (!mail_config_check_service (url, CAMEL_PROVIDER_TRANSPORT, connect, NULL)) { GtkWidget *dialog; char *transport, *warning; @@ -1045,6 +1046,7 @@ construct (MailConfigDruid *druid) druid->incoming_path = GTK_ENTRY (glade_xml_get_widget (gui, "txtIncomingPath")); gtk_signal_connect (GTK_OBJECT (druid->incoming_path), "changed", incoming_changed, druid); druid->incoming_keep_mail = GTK_CHECK_BUTTON (glade_xml_get_widget (gui, "chkIncomingKeepMail")); + druid->incoming_check_settings = GTK_CHECK_BUTTON (glade_xml_get_widget (gui, "chkIncomingCheckSettings")); druid->have_auth_page = TRUE; druid->auth_text = glade_xml_get_widget (gui, "htmlAuthentication"); @@ -1059,6 +1061,7 @@ construct (MailConfigDruid *druid) druid->outgoing_hostname = GTK_ENTRY (glade_xml_get_widget (gui, "txtTransportHostname")); gtk_signal_connect (GTK_OBJECT (druid->outgoing_hostname), "changed", transport_changed, druid); druid->outgoing_requires_auth = GTK_CHECK_BUTTON (glade_xml_get_widget (gui, "chkTransportNeedsAuth")); + druid->outgoing_check_settings = GTK_CHECK_BUTTON (glade_xml_get_widget (gui, "chkOutgoingCheckSettings")); set_defaults (druid); diff --git a/mail/mail-config-druid.h b/mail/mail-config-druid.h index 9dc3d6dd8e..836e00a6ae 100644 --- a/mail/mail-config-druid.h +++ b/mail/mail-config-druid.h @@ -69,6 +69,7 @@ struct _MailConfigDruid { GtkEntry *incoming_username; GtkEntry *incoming_path; GtkCheckButton *incoming_keep_mail; + GtkCheckButton *incoming_check_settings; /* authentication */ gboolean have_auth_page; @@ -82,6 +83,7 @@ struct _MailConfigDruid { GtkOptionMenu *outgoing_type; GtkEntry *outgoing_hostname; GtkCheckButton *outgoing_requires_auth; + GtkCheckButton *outgoing_check_settings; const CamelProvider *source_provider; const CamelProvider *transport_provider; diff --git a/mail/mail-config.glade b/mail/mail-config.glade index 3573488b83..9f481a8adb 100644 --- a/mail/mail-config.glade +++ b/mail/mail-config.glade @@ -697,47 +697,31 @@ Click "Next" to begin. </text> </widget> <widget> - <class>GtkHBox</class> - <name>hbox9</name> - <homogeneous>False</homogeneous> - <spacing>0</spacing> + <class>GtkCheckButton</class> + <name>chkIncomingKeepMail</name> + <can_focus>True</can_focus> + <label>Keep mail on server</label> + <active>False</active> + <draw_indicator>True</draw_indicator> <child> <padding>0</padding> <expand>False</expand> - <fill>True</fill> + <fill>False</fill> </child> + </widget> - <widget> - <class>GtkCheckButton</class> - <name>chkIncomingKeepMail</name> - <border_width>3</border_width> - <can_focus>True</can_focus> - <label>Keep mail on server</label> - <active>True</active> - <draw_indicator>True</draw_indicator> - <child> - <padding>2</padding> - <expand>False</expand> - <fill>False</fill> - </child> - </widget> - - <widget> - <class>GtkHButtonBox</class> - <name>hbuttonbox1</name> - <layout_style>GTK_BUTTONBOX_END</layout_style> - <spacing>30</spacing> - <child_min_width>85</child_min_width> - <child_min_height>27</child_min_height> - <child_ipad_x>7</child_ipad_x> - <child_ipad_y>0</child_ipad_y> - <child> - <padding>0</padding> - <expand>False</expand> - <fill>True</fill> - <pack>GTK_PACK_END</pack> - </child> - </widget> + <widget> + <class>GtkCheckButton</class> + <name>chkIncomingCheckSettings</name> + <can_focus>True</can_focus> + <label>Check settings</label> + <active>True</active> + <draw_indicator>True</draw_indicator> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>False</fill> + </child> </widget> </widget> </widget> @@ -1179,6 +1163,21 @@ Click "Next" to begin. </text> <fill>False</fill> </child> </widget> + + <widget> + <class>GtkCheckButton</class> + <name>chkOutgoingCheckSettings</name> + <border_width>3</border_width> + <can_focus>True</can_focus> + <label>Check settings</label> + <active>True</active> + <draw_indicator>True</draw_indicator> + <child> + <padding>0</padding> + <expand>False</expand> + <fill>False</fill> + </child> + </widget> </widget> </widget> </widget> diff --git a/mail/mail-config.glade.h b/mail/mail-config.glade.h index 23c8adca0a..f5660ebe7c 100644 --- a/mail/mail-config.glade.h +++ b/mail/mail-config.glade.h @@ -23,6 +23,7 @@ gchar *s = N_("Host:"); gchar *s = N_("Username:"); gchar *s = N_("Path:"); gchar *s = N_("Keep mail on server"); +gchar *s = N_("Check settings"); gchar *s = N_("Authentication"); gchar *s = N_("Authentication"); gchar *s = N_("Authentication Type:"); @@ -33,6 +34,7 @@ gchar *s = N_("Server Type: "); gchar *s = N_("Server Configuration"); gchar *s = N_("Host:"); gchar *s = N_("Server requires authentication"); +gchar *s = N_("Check settings"); gchar *s = N_("Account Management"); gchar *s = N_("Account Information"); gchar *s = N_("Name:"); |