From 1cca6b24335a9de963ced4b6127f4558ed19cf48 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 8 Jan 2002 00:48:54 +0000 Subject: Renamed. (mail_config_get_new_mail_notify_sound_file): Renamed. 2002-01-07 Jeffrey Stedfast * mail-config.c (mail_config_set_new_mail_notify_sound_file): Renamed. (mail_config_get_new_mail_notify_sound_file): Renamed. * mail-accounts.c (notify_radio_toggled): Replace EXEC with PLAY_SOUND. (construct): renamed the exec_command stuff to play_sound. * main.c (main): Init and shutdown gnome_sound. * mail-ops.c (fetch_mail_fetch): Don't do any new-mail notification here. (filter_folder_filter): call camel_filter_driver_flush. * mail-session.c (main_get_filter_driver): Set the filter-driver exec_func here instead. * mail-ops.c (mail_fetch_mail): Don't set the filter-driver exec_func here. svn path=/trunk/; revision=15263 --- mail/mail-config.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'mail/mail-config.c') diff --git a/mail/mail-config.c b/mail/mail-config.c index 4151c0c3a7..d1e322bb0b 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -108,7 +108,7 @@ typedef struct { char *filter_log_path; MailConfigNewMailNotify notify; - char *notify_command; + char *notify_filename; } MailConfig; static MailConfig *config = NULL; @@ -650,8 +650,8 @@ config_read (void) config->db, "/Mail/Notify/new_mail_notification", MAIL_CONFIG_NOTIFY_NOT, NULL); - config->notify_command = bonobo_config_get_string ( - config->db, "/Mail/Notify/new_mail_notification_command", NULL); + config->notify_filename = bonobo_config_get_string ( + config->db, "/Mail/Notify/new_mail_notification_sound_file", NULL); } #define bonobo_config_set_string_wrapper(db, path, val, ev) bonobo_config_set_string (db, path, val ? val : "", ev) @@ -954,8 +954,8 @@ mail_config_write_on_exit (void) bonobo_config_set_long (config->db, "/Mail/Notify/new_mail_notification", config->notify, NULL); - bonobo_config_set_string_wrapper (config->db, "/Mail/Notify/new_mail_notification_command", - config->notify_command, NULL); + bonobo_config_set_string_wrapper (config->db, "/Mail/Notify/new_mail_notification_sound_file", + config->notify_filename, NULL); if (config->threaded_hash) g_hash_table_foreach_remove (config->threaded_hash, hash_save_state, "Threads"); @@ -1693,16 +1693,16 @@ mail_config_set_new_mail_notify (MailConfigNewMailNotify type) } const char * -mail_config_get_new_mail_notify_command (void) +mail_config_get_new_mail_notify_sound_file (void) { - return config->notify_command; + return config->notify_filename; } void -mail_config_set_new_mail_notify_command (const char *command) +mail_config_set_new_mail_notify_sound_file (const char *filename) { - g_free (config->notify_command); - config->notify_command = g_strdup (command); + g_free (config->notify_filename); + config->notify_filename = g_strdup (filename); } gboolean -- cgit v1.2.3