Bug 509860: add button to the preference pane for in-product info page, r=mfinkle
authorGavin Sharp <gavin@mozilla.com>
Wed, 26 Aug 2009 17:19:53 -0700
changeset 793 0b3bdd50e2ec48a1780643e423b084c69ecf7a7d
parent 792 3d7a9711dea20b10d5a146294d3819e60f5d47bf
child 794 512e9107b026987d90a5efc917e32258b588c1b1
push id679
push usergsharp@mozilla.com
push dateThu, 27 Aug 2009 00:19:03 +0000
reviewersmfinkle
bugs509860
Bug 509860: add button to the preference pane for in-product info page, r=mfinkle
chrome/content/browser.xul
locales/en-US/chrome/preferences.dtd
--- a/chrome/content/browser.xul
+++ b/chrome/content/browser.xul
@@ -355,16 +355,23 @@
           <richlistbox id="downloads-list" flex="1"/>
         </vbox>
 
         <vbox id="prefs-container" flex="1">
           <hbox id="prefs-header" class="panel-header">
             <label value="&prefsHeader.label;"/>
           </hbox>
           <richlistbox id="prefs-list" seltype="single" flex="1">
+            <hbox id="prefs-about">
+              <vbox flex="1">
+                <label value="&about.title;" class="preftitle"/>
+                <description value="&about.description;" flex="1" class="prefdesc"/>
+              </vbox>
+              <button label="&about.button;" oncommand="Browser.addTab('about:', true);"/>
+            </hbox>
             <vbox class="prefsection" id="prefs-content">
               <label value="&content.title;" crop="end" flex="1"/>
             </vbox>
             <richpref pref="permissions.default.image" title="&showImages.title;" type="boolint" on="1" off="2"/>
             <richpref pref="javascript.enabled" type="bool" title="&enableJavaScript.title;">
               &enableJavaScript.description;
             </richpref>
             <richpref pref="plugins.enabled" type="bool" title="&enablePlugins.title;" onsynctopreference="Browser.setPluginState(this.value);">
--- a/locales/en-US/chrome/preferences.dtd
+++ b/locales/en-US/chrome/preferences.dtd
@@ -1,9 +1,12 @@
 <!ENTITY prefsHeader.label                         "Preferences">
+<!ENTITY about.title                               "About &brandShortName;">
+<!ENTITY about.button                              "Go to Page">
+<!ENTITY about.description                         "Get help and product information">
 <!ENTITY content.title                             "Content">
 <!ENTITY showImages.title                          "Show images">
 <!ENTITY enableJavaScript.title                    "Enable JavaScript">
 <!ENTITY enableJavaScript.description              "Most interactive sites use JavaScript">
 <!ENTITY enablePlugins.title                       "Enable Plugins">
 <!ENTITY enablePlugins.description                 "Plugins are used for special content such as video">
 <!ENTITY privacy.title                             "Privacy &amp; Security">
 <!ENTITY allowCookies.title                        "Allow cookies">