[Project_owners] XBL and preferences

Nickolay Ponomarev asqueella at gmail.com
Fri Dec 9 13:17:12 EST 2005

I believe you should put something like this in one of your prefpanes:
  <myelement preference-editable="true"/>
Where the binding of myelement has a "value" property.
This should make the "value" setter called at startup

To inform the system of changes of your widget's value, one of these
events must be fired: change, command, or input.


On 12/9/05, Pekka Sillanpää <p.sillanpaa at hut.fi> wrote:
> Hi all!
> I have one custom XBL element in my extension, and now when I am
> starting to use the prefwindow/preference stuff, I face problems. I have
> no idea how to set (initialize) the preference for a custom element. So
> when I open my settings panel, the custom XBL binded text box is empty.
> For the default textbox, checkbox etc. elements it is straightforward.
> How can I specify the field of a custom XUL element that the
> <preference> element should modify and read?
> I have read:
> http://developer.mozilla.org/en/docs/Preferences_System:New_attributes
> And there were said:
> "If you wish it to update the value of an element with different local
> name, for example your own XBL widget, you need to set the
> |preference-editable="true"| attribute on it."
> Set it where?
> Thanks in advance!
> Pekka
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners

More information about the Project_owners mailing list