mail/components/preferences/notifications.xul
author Richard Marti <richard.marti@gmail.com>
Wed, 03 Apr 2013 18:02:02 +0200
changeset 15366 505edc73c23a1ec5c17baf653319402c1a1a4a90
parent 12697 9ad3986227d0e93c4657aca8c77824364f0e4f65
child 30111 266495d41b7376f67e1999b769205bc6ca8e40bf
permissions -rw-r--r--
Bug 856451 - Make the New Mail alert show time easy adjustable. r=mconley, ui-r=bwinton

<?xml version="1.0"?>

<!-- -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
   - This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://global/skin/"?>
<?xml-stylesheet href="chrome://messenger/skin/preferences/preferences.css"?>

<!DOCTYPE prefwindow [
  <!ENTITY % notificationsDTD SYSTEM "chrome://messenger/locale/preferences/notifications.dtd">
  %notificationsDTD;
]>

<prefwindow id="NotificationsDialog" type="child"
            xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            dlgbuttons="accept,cancel"
            title="&notificationsDialog2.title;">

  <prefpane id="NotificationsDialogPane">
    <preferences id="NotificationsPreferences">
      <preference id="mail.biff.alert.show_preview" name="mail.biff.alert.show_preview" type="bool"/>
      <preference id="mail.biff.alert.show_subject" name="mail.biff.alert.show_subject" type="bool"/>
      <preference id="mail.biff.alert.show_sender" name="mail.biff.alert.show_sender" type="bool"/>
      <preference id="alerts.totalOpenTime" name="alerts.totalOpenTime" type="int"/>
    </preferences>

    <description>&alertCustomization.intro;</description>
    <checkbox id="previewText" class="indent" label="&previewText.label;" accesskey="&previewText.accesskey;" preference="mail.biff.alert.show_preview"/>
    <checkbox id="subject" class="indent" label="&subject.label;" accesskey="&subject.accesskey;" preference="mail.biff.alert.show_subject"/>
    <checkbox id="sender"  class="indent" label="&sender.label;" accesskey="&sender.accesskey;" preference="mail.biff.alert.show_sender"/>

    <separator/>
    <hbox align="center">
      <label id="totalOpenTimeBefore"
             control="totalOpenTime"
             value="&totalOpenTimeBefore.label;"
             accesskey="&totalOpenTimeBefore.accesskey;"/>
      <textbox id="totalOpenTime" type="number" decimalplaces="1" size="3" min="1" max="3600" increment="0.5"
               preference="alerts.totalOpenTime"
               onsyncfrompreference="return document.getElementById(this.getAttribute('preference')).value / 1000;"
               onsynctopreference="return this.value * 1000;"/>
      <label id="totalOpenTimeEnd" value="&totalOpenTimeEnd.label;"/>
    </hbox>
    <separator/>

  </prefpane>
</prefwindow>