From 1ca8df113fdf103c457f5b31cce5909e6bc85d00 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 31 Oct 2006 04:12:03 +0000 Subject: disable POP before SMTP option with non-POP3 account. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1258 ee746299-78ed-0310-b773-934348b2243d --- src/prefs_account_dialog.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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); -- cgit v1.2.3