[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [https-everywhere/master 1/9] Make a richlistbox.



Author: Mike Perry <mikeperry-git fscked org>
Date: Wed, 10 Nov 2010 14:59:44 -0800
Subject: Make a richlistbox.
Commit: 2ea85f870b98b87635ecc5afc890352d6b44c37e

The columns are still uneven and ugly..
---
 src/chrome/content/preferences.js  |    4 +++-
 src/chrome/content/preferences.xul |    4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/chrome/content/preferences.js b/src/chrome/content/preferences.js
index dc3a8db..edbac58 100644
--- a/src/chrome/content/preferences.js
+++ b/src/chrome/content/preferences.js
@@ -28,11 +28,13 @@ function https_prefs_init(doc) {
   var rs = doc.getElementById('https_everywhere_RuleSetList');
   var rulesets = https_everywhere.https_rules.rules;
   var hbox;
+
+
   for (var i = 0; i < rulesets.length; i++) {
     var ruleset = rulesets[i];
 
     if (i % row_width == 0) {
-      hbox = doc.createElement("hbox");
+      hbox = doc.createElement("richlistitem");
       rs.insertBefore(hbox,null);
     }
 
diff --git a/src/chrome/content/preferences.xul b/src/chrome/content/preferences.xul
index 30b62ee..1a78731 100644
--- a/src/chrome/content/preferences.xul
+++ b/src/chrome/content/preferences.xul
@@ -20,9 +20,9 @@
       <caption label="Which HTTPS redirection rules should apply?" 
                align="center"/>
         <vbox>
-          <vbox class="indent" align="center" id="https_everywhere_RuleSetList">
+          <richlistbox rows="3" class="indent" align="center" id="https_everywhere_RuleSetList">
             <separator class="groove" />
-          </vbox>
+          </richlistbox>
           <vbox>
             You can learn how to write your own rulesets
             <label id="ruleset link" 
-- 
1.7.1