diff --git a/src/chrome/content/options.js b/src/chrome/content/options.js index bde3d46..768c06c 100644 --- a/src/chrome/content/options.js +++ b/src/chrome/content/options.js @@ -48,6 +48,8 @@ var firetrayUIOptions = { this.initAppIconNames(); if (firetray.Handler.inMailApp) this.initNewMailIconNames(); + + window.sizeToContent(); }, onQuit: function(e) { @@ -715,10 +717,10 @@ var firetrayUIOptions = { window.addEventListener( 'load', function (e) { removeEventListener('load', arguments.callee, true); - firetrayUIOptions.onLoad(); }, + firetrayUIOptions.onLoad(e); }, false); window.addEventListener( 'unload', function (e) { removeEventListener('unload', arguments.callee, true); - firetrayUIOptions.onQuit(); }, + firetrayUIOptions.onQuit(e); }, false); diff --git a/src/chrome/content/options.xul b/src/chrome/content/options.xul index f501e31..9c13423 100644 --- a/src/chrome/content/options.xul +++ b/src/chrome/content/options.xul @@ -136,6 +136,7 @@ + @@ -299,6 +300,12 @@ observes="broadcaster-notification-disabled" /> + + diff --git a/src/chrome/locale/en-US/options.dtd b/src/chrome/locale/en-US/options.dtd index 4e04568..070b087 100644 --- a/src/chrome/locale/en-US/options.dtd +++ b/src/chrome/locale/en-US/options.dtd @@ -87,6 +87,8 @@ + + diff --git a/src/chrome/locale/es-AR/options.dtd b/src/chrome/locale/es-AR/options.dtd index 274e38d..cfea0ce 100644 --- a/src/chrome/locale/es-AR/options.dtd +++ b/src/chrome/locale/es-AR/options.dtd @@ -77,6 +77,8 @@ + + diff --git a/src/chrome/locale/fr/options.dtd b/src/chrome/locale/fr/options.dtd index b633b97..4241f8f 100644 --- a/src/chrome/locale/fr/options.dtd +++ b/src/chrome/locale/fr/options.dtd @@ -77,6 +77,8 @@ + + diff --git a/src/chrome/locale/it/options.dtd b/src/chrome/locale/it/options.dtd index c895df8..38bb1e6 100644 --- a/src/chrome/locale/it/options.dtd +++ b/src/chrome/locale/it/options.dtd @@ -77,6 +77,8 @@ + + diff --git a/src/chrome/locale/nl/options.dtd b/src/chrome/locale/nl/options.dtd index 31f36cc..4fe78ab 100644 --- a/src/chrome/locale/nl/options.dtd +++ b/src/chrome/locale/nl/options.dtd @@ -77,6 +77,8 @@ + + diff --git a/src/chrome/locale/sk-SK/options.dtd b/src/chrome/locale/sk-SK/options.dtd index 040daf8..2f34358 100644 --- a/src/chrome/locale/sk-SK/options.dtd +++ b/src/chrome/locale/sk-SK/options.dtd @@ -87,6 +87,8 @@ + + diff --git a/src/chrome/locale/zh-TW/options.dtd b/src/chrome/locale/zh-TW/options.dtd index 18d3111..18ab34a 100644 --- a/src/chrome/locale/zh-TW/options.dtd +++ b/src/chrome/locale/zh-TW/options.dtd @@ -77,6 +77,8 @@ + + diff --git a/src/defaults/preferences/prefs.js b/src/defaults/preferences/prefs.js index 6fea825..aa2191f 100644 --- a/src/defaults/preferences/prefs.js +++ b/src/defaults/preferences/prefs.js @@ -25,6 +25,7 @@ pref("extensions.firetray.chat_icon_enable", true); pref("extensions.firetray.chat_icon_blink", true); pref("extensions.firetray.chat_icon_blink_style", 0); +pref("extensions.firetray.mail_urgency_hint", true); pref("extensions.firetray.message_count_type", 0); pref("extensions.firetray.mail_notification_enabled", true); pref("extensions.firetray.mail_notification_type", 0); diff --git a/src/modules/FiretrayMessaging.jsm b/src/modules/FiretrayMessaging.jsm index 4805794..d364601 100644 --- a/src/modules/FiretrayMessaging.jsm +++ b/src/modules/FiretrayMessaging.jsm @@ -183,7 +183,8 @@ firetray.Messaging = { if (mailChangeTriggerFile) firetray.Messaging.runProcess(mailChangeTriggerFile, [newMsgCount.toString()]); - if (newMsgCount > currentMsgCount) + let setUrgency = firetray.Utils.prefService.getBoolPref("mail_urgency_hint"); + if (setUrgency && (newMsgCount > currentMsgCount)) for (let winId in firetray.Handler.windows) firetray.Window.setUrgency(winId, true); }