From 11c5b60d8cae375aed02a6bb1cfb8c483550158b Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 9 Feb 2001 00:12:52 +0000 Subject: Set the sensitivity of the spin button based on the state of the checkbox. 2001-02-08 Jeffrey Stedfast * mail-config-druid.c (construct): Set the sensitivity of the spin button based on the state of the checkbox. svn path=/trunk/; revision=8130 --- mail/ChangeLog | 3 +++ mail/mail-config-druid.c | 2 ++ 2 files changed, 5 insertions(+) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index b132ced3db..f5d6fbe646 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2001-02-08 Jeffrey Stedfast + * mail-config-druid.c (construct): Set the sensitivity of the spin + button based on the state of the checkbox. + * mail-config.c (config_read): Properly do defaults here. (mail_config_write): Removed some of the settings being saved here. diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c index 748506ff80..8b9ae57019 100644 --- a/mail/mail-config-druid.c +++ b/mail/mail-config-druid.c @@ -1089,6 +1089,8 @@ construct (MailConfigDruid *druid) druid->incoming_auto_check = GTK_CHECK_BUTTON (glade_xml_get_widget (gui, "chkAutoCheck")); gtk_signal_connect (GTK_OBJECT (druid->incoming_auto_check), "toggled", auto_check_toggled, druid); druid->incoming_auto_check_min = GTK_SPIN_BUTTON (glade_xml_get_widget (gui, "spinAutoCheckMinutes")); + gtk_widget_set_sensitive (GTK_WIDGET (druid->incoming_auto_check_min), + GTK_TOGGLE_BUTTON (druid->incoming_auto_check)->active); druid->incoming_check_settings = GTK_CHECK_BUTTON (glade_xml_get_widget (gui, "chkIncomingCheckSettings")); druid->have_auth_page = TRUE; -- cgit v1.2.3