1
0
mirror of https://github.com/moparisthebest/FireTray synced 2024-11-17 22:35:02 -05:00

rename mail_urgency_hint pref to mail_get_attention

This commit is contained in:
foudfou 2014-02-18 00:36:41 +01:00
parent 17889beac6
commit cee5d24e71
11 changed files with 24 additions and 23 deletions

View File

@ -136,7 +136,7 @@
<preference id="pref_mail_accounts" name="extensions.firetray.mail_accounts" type="string"/>
<preference id="pref_folder_count_recursive" name="extensions.firetray.folder_count_recursive" type="bool" />
<preference id="pref_only_favorite_folders" name="extensions.firetray.only_favorite_folders" type="bool" />
<preference id="pref_mail_urgency_hint" name="extensions.firetray.mail_urgency_hint" type="bool" />
<preference id="pref_mail_get_attention" name="extensions.firetray.mail_get_attention" type="bool" />
</preferences>
<vbox align="left" flex="1">
@ -300,10 +300,10 @@
observes="broadcaster-notification-disabled" />
</hbox>
<checkbox id="ui_mail_urgency_hint"
label="&mail_urgency_hint.label;"
accesskey="&mail_urgency_hint.accesskey;"
preference="pref_mail_urgency_hint"
<checkbox id="ui_mail_get_attention"
label="&mail_get_attention.label;"
accesskey="&mail_get_attention.accesskey;"
preference="pref_mail_get_attention"
observes="broadcaster-notification-disabled"/>
</vbox>

View File

@ -87,8 +87,8 @@
<!ENTITY mail_change_trigger.accesskey "L">
<!ENTITY mail_change_trigger.placeholder "/bin/notify-send">
<!ENTITY mail_change_trigger.tooltip "Absolute path of the program to run when the message count changes. This program will get the new message count as the first argument.">
<!ENTITY mail_urgency_hint.label "Set X11 urgency hint">
<!ENTITY mail_urgency_hint.accesskey "X">
<!ENTITY mail_get_attention.label "Window draws attention on new messages">
<!ENTITY mail_get_attention.accesskey "g">
<!ENTITY chat_icon_enable.label "Enable chat icon">
<!ENTITY chat_icon_enable.accesskey "E">

View File

@ -77,8 +77,8 @@
<!ENTITY mail_change_trigger.accesskey "L">
<!ENTITY mail_change_trigger.placeholder "/bin/notify-send">
<!ENTITY mail_change_trigger.tooltip "Ruta absoluta del programa para correr cuando la cuenta de mensajes cambia. Este programa obtendrá recibira el contador de nuevos mensajes como primer argumento.">
<!ENTITY mail_urgency_hint.label "Set X11 urgency hint">
<!ENTITY mail_urgency_hint.accesskey "X">
<!ENTITY mail_get_attention.label "Window draws attention on new messages">
<!ENTITY mail_get_attention.accesskey "g">
<!ENTITY chat_icon_enable.label "Habilitar ícono de chat">
<!ENTITY chat_icon_enable.accesskey "H">
<!ENTITY chat_icon_blink.label "Icono de chat parpadea con mensajes nuevos.">

View File

@ -77,10 +77,10 @@
<!ENTITY mail_change_trigger.accesskey "L">
<!ENTITY mail_change_trigger.placeholder "/bin/notify-send">
<!ENTITY mail_change_trigger.tooltip "Chemin absolu du programme à lancer lorsque le compte des messages a changé. Ce programme prendra pour base le nouveau décompte de messages">
<!ENTITY mail_urgency_hint.label "Activer l'indice d'urgence X11">
<!ENTITY mail_urgency_hint.accesskey "X">
<!ENTITY mail_get_attention.label "La fenêtre attire l'attention lors de nouveaux messages">
<!ENTITY mail_get_attention.accesskey "e">
<!ENTITY chat_icon_enable.label "Activer l'icône du chat">
<!ENTITY chat_icon_enable.accesskey "A">
<!ENTITY chat_icon_enable.accesskey "h">
<!ENTITY chat_icon_blink.label "L'icône du chat clignote à l'arrivée de nouveaux messages">
<!ENTITY chat_icon_blink.accesskey "i">
<!ENTITY chat_icon_blink.tooltip "quand un message privé est cité sur un canal">

View File

@ -77,8 +77,8 @@
<!ENTITY mail_change_trigger.accesskey "L">
<!ENTITY mail_change_trigger.placeholder "/bin/notify-send">
<!ENTITY mail_change_trigger.tooltip "Percorso assoluto del programma da lanciare quando viene incrementato il contatore dei messaggi non letti. Il programma utilizzerà il contatore dei nuovi messaggi come primo argomento.">
<!ENTITY mail_urgency_hint.label "Set X11 urgency hint">
<!ENTITY mail_urgency_hint.accesskey "X">
<!ENTITY mail_get_attention.label "Window draws attention on new messages">
<!ENTITY mail_get_attention.accesskey "g">
<!ENTITY chat_icon_enable.label "Attiva icona della chat">
<!ENTITY chat_icon_enable.accesskey "E">
<!ENTITY chat_icon_blink.label "Lampeggiamento dell'icona della chat per nuovi messaggi">

View File

@ -77,8 +77,8 @@
<!ENTITY mail_change_trigger.accesskey "S">
<!ENTITY mail_change_trigger.placeholder "/bin/notify-send">
<!ENTITY mail_change_trigger.tooltip "Absoluut pad van het uit te voeren programma wanneer het aantal wijzigt. Dit programma krijgt het aantal nieuwe berichten als het eerste argument.">
<!ENTITY mail_urgency_hint.label "Set X11 urgency hint">
<!ENTITY mail_urgency_hint.accesskey "X">
<!ENTITY mail_get_attention.label "Window draws attention on new messages">
<!ENTITY mail_get_attention.accesskey "g">
<!ENTITY chat_icon_enable.label "Chatpictogram inschakelen">
<!ENTITY chat_icon_enable.accesskey "s">
<!ENTITY chat_icon_blink.label "Chatpictogram knippert bij nieuwe berichten">

View File

@ -87,8 +87,8 @@
<!ENTITY mail_change_trigger.accesskey "S">
<!ENTITY mail_change_trigger.placeholder "/bin/notify-send">
<!ENTITY mail_change_trigger.tooltip "Absolútna cesta programu, ktorý bude spustený pri zmene počtu správ. Prvý argument je počet nových správ.">
<!ENTITY mail_urgency_hint.label "Set X11 urgency hint">
<!ENTITY mail_urgency_hint.accesskey "X">
<!ENTITY mail_get_attention.label "Window draws attention on new messages">
<!ENTITY mail_get_attention.accesskey "g">
<!ENTITY chat_icon_enable.label "Zapnúť ikonu chatu">
<!ENTITY chat_icon_enable.accesskey "E">

View File

@ -77,8 +77,8 @@
<!ENTITY mail_change_trigger.accesskey "L">
<!ENTITY mail_change_trigger.placeholder "/bin/notify-send">
<!ENTITY mail_change_trigger.tooltip "要在訊息數改變時執行程式的絕對路徑。程式會將新的訊息數作為第一個參數。">
<!ENTITY mail_urgency_hint.label "Set X11 urgency hint">
<!ENTITY mail_urgency_hint.accesskey "X">
<!ENTITY mail_get_attention.label "Window draws attention on new messages">
<!ENTITY mail_get_attention.accesskey "g">
<!ENTITY chat_icon_enable.label "啟用聊天圖示">
<!ENTITY chat_icon_enable.accesskey "E">
<!ENTITY chat_icon_blink.label "有新訊息時閃爍聊天圖示">

View File

@ -25,7 +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.mail_get_attention", true);
pref("extensions.firetray.message_count_type", 0);
pref("extensions.firetray.mail_notification_enabled", true);
pref("extensions.firetray.mail_notification_type", 0);

View File

@ -685,7 +685,8 @@ firetray.VersionChangeHandler = {
"text_color", "scroll_to_hide", "scroll_action", "grab_multimedia_keys",
"hide_show_mm_key", "accounts_to_exclude" ];
let v040b2Options = [ 'mail_notification' ];
let oldOptions = v03Options.concat(v040b2Options);
let v050Options = [ 'mail_urgency_hint' ];
let oldOptions = v03Options.concat(v040b2Options).concat(v050Options);
for (let i = 0, length = oldOptions.length; i<length; ++i) {
try {

View File

@ -183,7 +183,7 @@ firetray.Messaging = {
if (mailChangeTriggerFile)
firetray.Messaging.runProcess(mailChangeTriggerFile, [newMsgCount.toString()]);
let getAttention = firetray.Utils.prefService.getBoolPref("mail_urgency_hint"); // FIXME: rename!
let getAttention = firetray.Utils.prefService.getBoolPref("mail_get_attention");
if (getAttention && (newMsgCount > currentMsgCount))
for (let winId in firetray.Handler.windows)
firetray.Handler.windowGetAttention(winId);