[or-cvs] [https-everywhere/master 3/9] Make richtextbox work.

mikeperry at torproject.org mikeperry at torproject.org
Thu Nov 11 19:09:52 UTC 2010


Author: Mike Perry <mikeperry-git fscked org>
Date: Wed, 10 Nov 2010 16:24:15 -0800
Subject: Make richtextbox work.
Commit: 7e0779a626a538dedd8467a6540f0ae761e9b87e

Layout still sucks...
---
 src/chrome/content/preferences.js  |    6 +++---
 src/chrome/content/preferences.xul |    7 ++-----
 2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/chrome/content/preferences.js b/src/chrome/content/preferences.js
index 9db6c66..05d0b55 100644
--- a/src/chrome/content/preferences.js
+++ b/src/chrome/content/preferences.js
@@ -33,13 +33,13 @@ function https_prefs_init(doc) {
     var ruleset = rulesets[i];
 
     if (i % row_width == 0) {
-      hbox = doc.createElement("listitem");
+      hbox = doc.createElement("richlistitem");
       //hbox.setAttribute("type", "checkbox");
       //hbox.setAttribute("style", "listitem-checkbox");
     }
 
-    var newopt = doc.createElement("listcell");
-    newopt.setAttribute("type", "checkbox");
+    var newopt = doc.createElement("checkbox");
+    //newopt.setAttribute("type", "checkbox");
     //newopt.setAttribute("style", "listcell-checkbox");
 
     // This pref should always have been created by the RuleSet constructor
diff --git a/src/chrome/content/preferences.xul b/src/chrome/content/preferences.xul
index be71bf5..6ae92f5 100644
--- a/src/chrome/content/preferences.xul
+++ b/src/chrome/content/preferences.xul
@@ -20,11 +20,8 @@
       <caption label="Which HTTPS redirection rules should apply?" 
                align="center"/>
         <vbox>
-          <listbox class="indent" align="center" id="https_everywhere_RuleSetList">
-            <listcols>
-             <listcol/> <listcol/> <listcol/> <listcol/> <listcol/>
-            </listcols>
-          </listbox>
+          <richlistbox class="indent" align="center" id="https_everywhere_RuleSetList">
+          </richlistbox>
           <vbox>
             You can learn how to write your own rulesets
             <label id="ruleset link" 
-- 
1.7.1




More information about the tor-commits mailing list