aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-01-08 08:48:54 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-01-08 08:48:54 +0800
commit1cca6b24335a9de963ced4b6127f4558ed19cf48 (patch)
tree0484e61f01c9c16cf6e87f5f0d9558ce424d09c3 /mail/mail-config.c
parente96bfc58ca850606a7c787636bc6e787266e6598 (diff)
downloadgsoc2013-evolution-1cca6b24335a9de963ced4b6127f4558ed19cf48.tar
gsoc2013-evolution-1cca6b24335a9de963ced4b6127f4558ed19cf48.tar.gz
gsoc2013-evolution-1cca6b24335a9de963ced4b6127f4558ed19cf48.tar.bz2
gsoc2013-evolution-1cca6b24335a9de963ced4b6127f4558ed19cf48.tar.lz
gsoc2013-evolution-1cca6b24335a9de963ced4b6127f4558ed19cf48.tar.xz
gsoc2013-evolution-1cca6b24335a9de963ced4b6127f4558ed19cf48.tar.zst
gsoc2013-evolution-1cca6b24335a9de963ced4b6127f4558ed19cf48.zip
Renamed. (mail_config_get_new_mail_notify_sound_file): Renamed.
2002-01-07 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c20
1 files changed, 10 insertions, 10 deletions
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