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 | |
parent | 3ec0c34eae55a26f7515e8153fe594b0fc4e662f (diff) | |
download | gsoc2013-evolution-6b5bb3fa1d954560b6d5956b9ac730adb709c3f3.tar gsoc2013-evolution-6b5bb3fa1d954560b6d5956b9ac730adb709c3f3.tar.gz gsoc2013-evolution-6b5bb3fa1d954560b6d5956b9ac730adb709c3f3.tar.bz2 gsoc2013-evolution-6b5bb3fa1d954560b6d5956b9ac730adb709c3f3.tar.lz gsoc2013-evolution-6b5bb3fa1d954560b6d5956b9ac730adb709c3f3.tar.xz gsoc2013-evolution-6b5bb3fa1d954560b6d5956b9ac730adb709c3f3.tar.zst gsoc2013-evolution-6b5bb3fa1d954560b6d5956b9ac730adb709c3f3.zip |
Fix for bug #330355
svn path=/trunk/; revision=32350
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | 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 <raghavguru7@gmail.com> + + ** 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 <shreekrishnan@gmail.com> ** 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); |