prefwindow in XulRunner

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

prefwindow in XulRunner

Fabrice Desré
Hello,

 I can't get prefwindow / prefpane to work in XulRunner.
It never shows the navigation toolbar, so i'm stuck in the first pane :-(
Here is my XUL :

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet
href="chrome://mozapps/content/preferences/preferences.css"?> <prefwindow
id="prefs"
                                xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
                                title="Preferences" type="prefwindow">
<prefpane id="user-pref" label="User information"
image="icons/contact-new.png">
  <preferences>
    <preference id="user.firstname" name="user.firstname" type="string"/>
        <preference id="user.lastname" name="user.lastname" type="string"/>
  </preferences>
  <grid>
    <columns>
          <column/>
          <column/>
        </columns>
        <rows>
          <row>
            <label value="Firstname"/>
            <textbox preference="user.firstname"/>
          </row>
          <row>
            <label value="Lastname"/>
            <textbox preference="user.lastname"/>
          </row>
        </rows>
  </grid>
</prefpane>
<prefpane id="ser-pref" label="Serial line configuration"
image="icons/line.png">
  <preferences>
    <preference id="ser.port" name="ser.port" type="string"/>
  </preferences>
  <grid>
    <columns>
          <column/>
          <column/>
        </columns>
        <rows>
          <row>
            <label value="Serial line port"/>
            <textbox preference="ser.port"/>
          </row>
        </rows>
  </grid>
</prefpane>
</prefwindow>

 What's wrong ?
 Any help appreciated !

  Fabrice
_______________________________________________
Mozilla-xpfe mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-xpfe