diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-07-19 23:30:18 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-07-19 23:30:18 +0800 |
commit | 6b5bb3fa1d954560b6d5956b9ac730adb709c3f3 (patch) | |
tree | 67303ed85ca0bd246c0d4ceb6cf3d0d697d0cdcc /mail/em-mailer-prefs.c | |
parent | 3ec0c34eae55a26f7515e8153fe594b0fc4e662f (diff) | |
download | gsoc2013-evolution-6b5bb3fa1d954560b6d5956b9ac730adb709c3f3.tar.gz gsoc2013-evolution-6b5bb3fa1d954560b6d5956b9ac730adb709c3f3.tar.zst gsoc2013-evolution-6b5bb3fa1d954560b6d5956b9ac730adb709c3f3.zip |
Fix for bug #330355
svn path=/trunk/; revision=32350
Diffstat (limited to 'mail/em-mailer-prefs.c')
-rw-r--r-- | mail/em-mailer-prefs.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/em-mailer-prefs.c b/mail/em-mailer-prefs.c index 96110a4a6f..c7d0871c62 100644 --- a/mail/em-mailer-prefs.c +++ b/mail/em-mailer-prefs.c @@ -664,7 +664,12 @@ notify_type_changed (GtkWidget *widget, EMMailerPrefs *prefs) type = MAIL_CONFIG_NOTIFY_BEEP; else type = MAIL_CONFIG_NOTIFY_PLAY_SOUND; - + + if (type == MAIL_CONFIG_NOTIFY_PLAY_SOUND) + gtk_widget_set_sensitive ((GtkWidget *) prefs->notify_sound_file, TRUE); + else + gtk_widget_set_sensitive ((GtkWidget *) prefs->notify_sound_file, FALSE); + gconf_client_set_int (prefs->gconf, "/apps/evolution/mail/notify/type", type, NULL); } @@ -829,7 +834,7 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs) gtk_file_chooser_set_filename (GTK_FILE_CHOOSER_BUTTON (prefs->notify_sound_file), buf ? buf : ""); g_signal_connect (GTK_FILE_CHOOSER_BUTTON (prefs->notify_sound_file), "selection-changed", G_CALLBACK (notify_sound_changed), prefs); - if (!gconf_client_key_is_writable (prefs->gconf, "/apps/evolution/mail/notify/sound", NULL)) + if (val != MAIL_CONFIG_NOTIFY_PLAY_SOUND) gtk_widget_set_sensitive ((GtkWidget *) prefs->notify_sound_file, FALSE); g_free (buf); |