diff options
author | Jason Leach <jleach@ximian.com> | 2001-07-11 05:08:02 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-07-11 05:08:02 +0800 |
commit | 2864edc6325ba994179b35b6a40d9d053e8805d8 (patch) | |
tree | 0186cc996d68660c1f8e0e0e28c78939c886f9ff /mail/mail-accounts.c | |
parent | b2716b04c952a71d385a07c32c36269024a57ea4 (diff) | |
download | gsoc2013-evolution-2864edc6325ba994179b35b6a40d9d053e8805d8.tar gsoc2013-evolution-2864edc6325ba994179b35b6a40d9d053e8805d8.tar.gz gsoc2013-evolution-2864edc6325ba994179b35b6a40d9d053e8805d8.tar.bz2 gsoc2013-evolution-2864edc6325ba994179b35b6a40d9d053e8805d8.tar.lz gsoc2013-evolution-2864edc6325ba994179b35b6a40d9d053e8805d8.tar.xz gsoc2013-evolution-2864edc6325ba994179b35b6a40d9d053e8805d8.tar.zst gsoc2013-evolution-2864edc6325ba994179b35b6a40d9d053e8805d8.zip |
[Bug #4305: Make the automatic mark-as-read timer optional]
2001-07-10 Jason Leach <jleach@ximian.com>
[Bug #4305: Make the automatic mark-as-read timer optional]
* mail-config.glade: Necessary changes to make the Mark as "Read"
label a toggle button instead.
* mail-accounts.c (construct): Connect to the "toggled" on our new
toggle.
(timeout_toggled): New callback, called from above.
* mail-config.c (mail_config_get_do_seen_timeout): New.
(mail_config_set_do_seen_timeout): New.
(mail_config_write_on_exit): Save the preference here.
(config_read): Load it here.
svn path=/trunk/; revision=10973
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r-- | mail/mail-accounts.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index e4e02fe61d..31718f2948 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -574,6 +574,12 @@ citation_highlight_toggled (GtkToggleButton *button, gpointer data) } static void +timeout_toggled (GtkToggleButton *button, gpointer data) +{ + mail_config_set_do_seen_timeout (gtk_toggle_button_get_active (button)); +} + +static void citation_color_set (GnomeColorPicker *cp, guint r, guint g, guint b, guint a) { guint32 rgb; @@ -587,6 +593,7 @@ citation_color_set (GnomeColorPicker *cp, guint r, guint g, guint b, guint a) mail_config_set_citation_color (rgb); } +/* FIXME: */ static void timeout_changed (GtkEntry *entry, gpointer data) @@ -763,7 +770,12 @@ construct (MailAccountsDialog *dialog) set_color (dialog->citation_color); gtk_signal_connect (GTK_OBJECT (dialog->citation_color), "color_set", GTK_SIGNAL_FUNC (citation_color_set), dialog); - + + dialog->timeout_toggle = GTK_SPIN_BUTTON (glade_xml_get_widget (gui, "checkMarkTimeout")); + gtk_toggle_button_set_active (dialog->timeout_toggle, mail_config_get_do_seen_timeout ()); + gtk_signal_connect (GTK_OBJECT (dialog->timeout_toggle), "toggled", + GTK_SIGNAL_FUNC (timeout_toggled), dialog); + dialog->timeout = GTK_SPIN_BUTTON (glade_xml_get_widget (gui, "spinMarkTimeout")); gtk_spin_button_set_value (dialog->timeout, (1.0 * mail_config_get_mark_as_seen_timeout ()) / 1000.0); gtk_signal_connect (GTK_OBJECT (dialog->timeout), "changed", |