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
This commit is contained in:
committed by
Jeffrey Stedfast
parent
f7926820ed
commit
f5ab714264
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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:");
|
||||
|
||||
Reference in New Issue
Block a user