diff --git a/mail/components/preferences/general.js b/mail/components/preferences/general.js
index 5d98249a3fc8..f97fcbaba624 100644
--- a/mail/components/preferences/general.js
+++ b/mail/components/preferences/general.js
@@ -38,14 +38,12 @@
var gGeneralPane = {
mPane: null,
- mSound: null,
init: function ()
{
this.mPane = document.getElementById("paneGeneral");
this.startPageCheck();
- this.mailSoundCheck();
},
#ifdef HAVE_SHELL_SERVICE
@@ -108,12 +106,7 @@ var gGeneralPane = {
"", null);
},
- mailSoundCheck: function()
- {
- document.getElementById("soundButton").disabled = !document.getElementById("newMailNotification").checked;
- },
-
- showAdvancedSound: function()
+ customizeNewMailBehavior: function()
{
document.documentElement
.openSubDialog("chrome://messenger/content/preferences/notifications.xul",
diff --git a/mail/components/preferences/general.xul b/mail/components/preferences/general.xul
index 802015646d84..9a03fa49662e 100644
--- a/mail/components/preferences/general.xul
+++ b/mail/components/preferences/general.xul
@@ -101,10 +101,8 @@
-
-
+
#ifdef XP_MACOSX
-
-
+ preference="mail.biff.play_sound" label="&playSound.label;" flex="1"/>
+
+
diff --git a/mail/components/preferences/notifications.js b/mail/components/preferences/notifications.js
index 84c11a26e0e1..5f4949d3a7d3 100644
--- a/mail/components/preferences/notifications.js
+++ b/mail/components/preferences/notifications.js
@@ -66,9 +66,12 @@ var gNotificationsDialog = {
readSoundLocation: function()
{
var soundUrlLocation = document.getElementById("soundUrlLocation");
- soundUrlLocation.value = document.getElementById("mail.biff.play_sound.url").value;
- soundUrlLocation.label = this.convertURLToLocalFile(soundUrlLocation.value).leafName;
- soundUrlLocation.image = "moz-icon://" + soundUrlLocation.label + "?size=16";
+ soundUrlLocation.value = document.getElementById("mail.biff.play_sound.url").value;
+ if (soundUrlLocation.value)
+ {
+ soundUrlLocation.label = this.convertURLToLocalFile(soundUrlLocation.value).leafName;
+ soundUrlLocation.image = "moz-icon://" + soundUrlLocation.label + "?size=16";
+ }
return undefined;
},
diff --git a/mail/components/preferences/notifications.xul b/mail/components/preferences/notifications.xul
index d5a9a780c524..12c70319e969 100644
--- a/mail/components/preferences/notifications.xul
+++ b/mail/components/preferences/notifications.xul
@@ -51,20 +51,33 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
dlgbuttons="accept,cancel"
style="width: &window.width; !important;"
- title="¬ificationsDialog.title;">
+ title="¬ificationsDialog1.title;">
+
+
+
-
+
+#ifndef XP_MACOSX
-
+
+ &alertCustomization.intro;
+
+
+
+
+#endif
+
+
+