aboutsummaryrefslogtreecommitdiff
path: root/src/prefs_account_dialog.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-31 04:12:03 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-31 04:12:03 +0000
commit1ca8df113fdf103c457f5b31cce5909e6bc85d00 (patch)
tree402f6713c7b7b49c3d3320728714103e67b50cc7 /src/prefs_account_dialog.c
parent2d71ecb8be94e10a880b6aa57711cffd8e52f9ce (diff)
disable POP before SMTP option with non-POP3 account.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1258 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_account_dialog.c')
-rw-r--r--src/prefs_account_dialog.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/prefs_account_dialog.c b/src/prefs_account_dialog.c
index 4e7d9b48..83c3a9db 100644
--- a/src/prefs_account_dialog.c
+++ b/src/prefs_account_dialog.c
@@ -1168,6 +1168,8 @@ static void prefs_account_send_create(void)
SET_TOGGLE_SENSITIVITY (smtp_auth_chkbtn, vbox4);
+ PACK_VSPACER(vbox3, vbox_spc, VSPACING_NARROW_2);
+
PACK_CHECK_BUTTON (vbox3, pop_bfr_smtp_chkbtn,
_("Authenticate with POP3 before sending"));
@@ -2115,12 +2117,16 @@ static void prefs_account_protocol_activated(GtkMenuItem *menuitem)
gtk_widget_show(receive.nntp_frame);
gtk_widget_set_sensitive(receive.recvatgetall_chkbtn, TRUE);
+ gtk_widget_set_sensitive(p_send.pop_bfr_smtp_chkbtn, FALSE);
+
if (!tmp_ac_prefs->account_name) {
gtk_toggle_button_set_active
(GTK_TOGGLE_BUTTON(receive.recvatgetall_chkbtn),
FALSE);
}
+ gtk_widget_set_sensitive(p_send.pop_bfr_smtp_chkbtn, FALSE);
+
#if USE_SSL
gtk_widget_hide(ssl.pop_frame);
gtk_widget_hide(ssl.imap_frame);
@@ -2157,6 +2163,8 @@ static void prefs_account_protocol_activated(GtkMenuItem *menuitem)
TRUE);
}
+ gtk_widget_set_sensitive(p_send.pop_bfr_smtp_chkbtn, FALSE);
+
#if USE_SSL
gtk_widget_hide(ssl.pop_frame);
gtk_widget_hide(ssl.imap_frame);
@@ -2193,6 +2201,8 @@ static void prefs_account_protocol_activated(GtkMenuItem *menuitem)
FALSE);
}
+ gtk_widget_set_sensitive(p_send.pop_bfr_smtp_chkbtn, FALSE);
+
#if USE_SSL
gtk_widget_hide(ssl.pop_frame);
gtk_widget_show(ssl.imap_frame);
@@ -2230,6 +2240,8 @@ static void prefs_account_protocol_activated(GtkMenuItem *menuitem)
TRUE);
}
+ gtk_widget_set_sensitive(p_send.pop_bfr_smtp_chkbtn, TRUE);
+
#if USE_SSL
gtk_widget_show(ssl.pop_frame);
gtk_widget_hide(ssl.imap_frame);