Bug 669390 - Update mobile settings to use type="menulist"; r=mfinkle
authorGeoff Lankow <geoff@darktrojan.net>
Sun, 14 Aug 2011 16:06:01 +1200
changeset 75269 2de3cff973b2e4563bbf2d0abc4ee81e6eda587c
parent 75268 6ece2d6ece8ee562ed17dd829090011a62fcb147
child 75270 96fa4289361ec9b34bafc6680903866dddbcc9cd
child 75278 dda49a4f9e4c548fb07128b0a5753358958dc3b4
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersmfinkle
bugs669390
milestone8.0a1
Bug 669390 - Update mobile settings to use type="menulist"; r=mfinkle
mobile/chrome/content/browser.css
mobile/chrome/content/browser.xul
--- a/mobile/chrome/content/browser.css
+++ b/mobile/chrome/content/browser.css
@@ -54,16 +54,21 @@ setting[type="color"] {
   -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-color");
 }
 
 setting[type="file"],
 setting[type="directory"] {
   -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-path");
 }
 
+setting[type="radio"],
+setting[type="menulist"] {
+  -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-multi");
+}
+
 #browsers > notificationbox {
   -moz-binding: url("chrome://browser/content/notification.xml#stacked-notificationbox");
   overflow: -moz-hidden-unscrollable;
 }
 
 notification {
     -moz-binding: url("chrome://browser/content/notification.xml#notification");
 }
--- a/mobile/chrome/content/browser.xul
+++ b/mobile/chrome/content/browser.xul
@@ -438,24 +438,24 @@
 #ifdef MOZ_OFFICIAL_BRANDING
 # these two point to the same page, this just matters for what shows up in the
 # URL bar
                             oncommand="BrowserUI.newTab('about:firefox', Browser.selectedTab);"/>
 #else
                             oncommand="BrowserUI.newTab('about:fennec', Browser.selectedTab);"/>
 #endif
                   </setting>
-                  <setting id="prefs-uilanguage" title="&language.title;" type="control">
+                  <setting id="prefs-uilanguage" title="&language.title;" type="menulist">
                     <menulist id="prefs-languages" oncommand="PreferencesView.updateLocale();">
                       <menupopup>
                         <menuitem id="prefs-languages-auto" label="&language.auto;" value="auto"/>
                       </menupopup>
                     </menulist>
                   </setting>
-                  <setting id="prefs-homepage" title="&homepage.title;" type="control">
+                  <setting id="prefs-homepage" title="&homepage.title;" type="menulist">
                     <menulist id="prefs-homepage-options" oncommand="PreferencesView.updateHomePage();">
                       <menupopup onpopupshowing="PreferencesView.updateHomePageList();">
                         <menuitem id="prefs-homepage-default" label="&homepage.default;" value="default"/>
                         <menuitem id="prefs-homepage-none" label="&homepage.none;" value="none"/>
                         <menuitem id="prefs-homepage-currentpage" label="&homepage.currentpage;" value="currentpage"/>
                       </menupopup>
                     </menulist>
                   </setting>