From 6b5bb3fa1d954560b6d5956b9ac730adb709c3f3 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Wed, 19 Jul 2006 15:30:18 +0000 Subject: Fix for bug #330355 svn path=/trunk/; revision=32350 --- mail/ChangeLog | 8 ++++++++ mail/em-mailer-prefs.c | 9 +++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index ee5c1d3eb7..19268f1bf6 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2006-07-14 Raghavendran R + + ** Fix for bug #330355 + + * em-mailer-prefs.c:Mailer Preferences. New mail notification, + "specify filename" was enabled for radNotifyNot and radNotifyBeep. + Disable the button, when it wasnt for button. + 2006-06-10 Shree Krishnan ** Fix for bug #338442 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); -- cgit v1.2.3