diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-08 07:19:20 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-08 07:19:20 +0800 |
commit | fc7ad0c9a97377934f6f1c03c5fa805a6c471513 (patch) | |
tree | 07e894ae98ad386f35bbad9ab2359cbd18152afd /mail/mail-config.c | |
parent | a3075377cc82352d45107303b3cde5a22b0cfb44 (diff) | |
download | gsoc2013-evolution-fc7ad0c9a97377934f6f1c03c5fa805a6c471513.tar.gz gsoc2013-evolution-fc7ad0c9a97377934f6f1c03c5fa805a6c471513.tar.zst gsoc2013-evolution-fc7ad0c9a97377934f6f1c03c5fa805a6c471513.zip |
This should return a GtkWidget not a GtkObject.
2001-08-07 Jeffrey Stedfast <fejj@ximian.com>
* subscribe-dialog.c (subscribe_dialog_new): This should return a
GtkWidget not a GtkObject.
* mail-session.c (get_filter_driver): Update to use user's logging
preferences.
* mail-accounts.c (filter_log_toggled): New.
(filter_log_path_changed): New.
(construct): Get and attach signals to the filter logging option
widgets.
* mail-config.c (config_read): Read in filter logging options.
(mail_config_write_on_exit): Save filter logging options.
(mail_config_set_filter_log_path): Implemented.
(mail_config_get_filter_log_path): Implemented.
(mail_config_set_filter_log): Implemented.
(mail_config_get_filter_log): Implemented.
svn path=/trunk/; revision=11751
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index fae3a8a0d0..40d0fc8cbc 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -85,6 +85,9 @@ typedef struct { GHashTable *threaded_hash; GHashTable *preview_hash; + + gboolean filter_log; + char *filter_log_path; } MailConfig; static MailConfig *config = NULL; @@ -551,6 +554,13 @@ config_read (void) /* Trash folders */ config->empty_trash_on_exit = bonobo_config_get_boolean_with_default ( config->db, "/Mail/Trash/empty_on_exit", FALSE, NULL); + + /* Filter logging */ + config->filter_log = bonobo_config_get_boolean_with_default ( + config->db, "/Mail/Filters/log", FALSE, NULL); + + config->filter_log_path = bonobo_config_get_string ( + config->db, "/Mail/Filters/log_path", NULL); } #define bonobo_config_set_string_wrapper(db, path, val, ev) bonobo_config_set_string (db, path, val ? val : "", ev) @@ -811,6 +821,13 @@ mail_config_write_on_exit (void) bonobo_config_set_boolean (config->db, "/Mail/Trash/empty_on_exit", config->empty_trash_on_exit, NULL); + /* Filter logging */ + bonobo_config_set_boolean (config->db, "/Mail/Filters/log", + config->filter_log, NULL); + + bonobo_config_set_string_wrapper (config->db, "/Mail/Filters/log_path", + config->filter_log_path, NULL); + g_hash_table_foreach_remove (config->threaded_hash, hash_save_state, "Threads"); @@ -988,6 +1005,31 @@ mail_config_set_thread_list (const char *uri, gboolean value) } gboolean +mail_config_get_filter_log (void) +{ + return config->filter_log; +} + +void +mail_config_set_filter_log (gboolean value) +{ + config->filter_log = value; +} + +const char * +mail_config_get_filter_log_path (void) +{ + return config->filter_log_path; +} + +void +mail_config_set_filter_log_path (const char *path) +{ + g_free (config->filter_log_path); + config->filter_log_path = g_strdup (path); +} + +gboolean mail_config_get_hide_deleted (void) { return config->hide_deleted; |