From 6d34729106baa2e3a9fd9db29db04b0f9b8e984b Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 9 Aug 2000 01:56:51 +0000 Subject: Attach a signal handler to call the "changed" function when the user * mail-config-gui.c (service_page_item_new): Attach a signal handler to call the "changed" function when the user clicks the "keep on server" checkbox. svn path=/trunk/; revision=4620 --- mail/ChangeLog | 8 +++++++- mail/mail-config-gui.c | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index dfed8018b3..e2802b2814 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2000-08-08 Dan Winship + + * mail-config-gui.c (service_page_item_new): Attach a signal + handler to call the "changed" function when the user clicks the + "keep on server" checkbox. + 2000-08-08 Jeffrey Stedfast * mail-ops.c (view_msg): New convenience function with params of a @@ -19,7 +25,7 @@ * mail-config-gui.c: Add "Don't delete messages from server" button to remote SOURCEs that aren't STORAGEs (ie, POP). (provider_list): Only list SOURCEs. (ie, not mh) - + * mail-config.c: Save/load "keep_on_server" flag. * mail-ops.c (fetch_remote_mail): New function, split out of diff --git a/mail/mail-config-gui.c b/mail/mail-config-gui.c index fda81c7b43..87f81cd457 100644 --- a/mail/mail-config-gui.c +++ b/mail/mail-config-gui.c @@ -973,6 +973,9 @@ service_page_item_new (MailDialogServicePage *page, MailService *mcs) !(mcs->provider->flags & CAMEL_PROVIDER_IS_STORAGE)) { item->keep_on_server = gtk_check_button_new_with_label ( _("Don't delete messages from server")); + gtk_signal_connect (GTK_OBJECT (item->keep_on_server), "toggled", + GTK_SIGNAL_FUNC (service_page_item_changed), + page); gtk_table_attach (GTK_TABLE (table), item->keep_on_server, 0, 3, row, row + 1, GTK_FILL, 0, 0, 0); row++; -- cgit v1.2.3