diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-01-25 06:24:44 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-01-25 06:24:44 +0800 |
commit | f744966790c9027ceccf9393f49978a80b1b010c (patch) | |
tree | 055e8c5352c3b2af832deac2590a1719aaf6da69 /mail/mail-accounts.c | |
parent | 576238ed57c4124a1dc18e54966bb091880d4372 (diff) | |
download | gsoc2013-evolution-f744966790c9027ceccf9393f49978a80b1b010c.tar.gz gsoc2013-evolution-f744966790c9027ceccf9393f49978a80b1b010c.tar.zst gsoc2013-evolution-f744966790c9027ceccf9393f49978a80b1b010c.zip |
Added a 3rd page to the account editor to allow users to set their HTML
2001-01-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.glade: Added a 3rd page to the account editor to
allow users to set their HTML sending preference and also allow
them to change their message status timeout.
* mail-accounts.c (construct): Added handlers for the send-html
checkbox and for the mark-message-as timeout spinbutton.
svn path=/trunk/; revision=7789
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r-- | mail/mail-accounts.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index d7a71cfd82..29200a5c5a 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -330,6 +330,24 @@ news_delete (GtkButton *button, gpointer data) } #endif /* ENABLE_NNTP */ +/* temp widget callbacks */ +static void +send_html_toggled (GtkToggleButton *button, gpointer data) +{ + mail_config_set_send_html (button->active); +} + +static void +timeout_changed (GtkEntry *entry, gpointer data) +{ + MailAccountsDialog *dialog = data; + gint val; + + val = (gint) (gtk_spin_button_get_value_as_float (dialog->timeout) * 1000); + + mail_config_set_mark_as_seen_timeout (val); +} + static void construct (MailAccountsDialog *dialog) { @@ -389,6 +407,19 @@ construct (MailAccountsDialog *dialog) gtk_notebook_remove_page (GTK_NOTEBOOK (notebook), 1); #endif + /* get those temp widgets */ + dialog->send_html = GTK_CHECK_BUTTON (glade_xml_get_widget (gui, "chkSendHTML")); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->send_html), + mail_config_get_send_html ()); + gtk_signal_connect (GTK_OBJECT (dialog->send_html), "toggled", + GTK_SIGNAL_FUNC (send_html_toggled), dialog); + + dialog->timeout = GTK_SPIN_BUTTON (glade_xml_get_widget (gui, "spinMarkTimeout")); + gtk_spin_button_set_value (GTK_SPIN_BUTTON (dialog->timeout), + (1.0 * mail_config_get_mark_as_seen_timeout ()) / 1000.0); + gtk_signal_connect (GTK_OBJECT (dialog->timeout), "changed", + GTK_SIGNAL_FUNC (timeout_changed), dialog); + /* now to fill in the clists */ dialog->accounts_row = -1; dialog->accounts = mail_config_get_accounts (); |