Paul Tomlin wrote:
Matthew Waymost wrote:
I think <menupopup/> needs to be outside the template. Your code creates a <menupopup/> for every <menuitem/> generated by the template.

That little snippet hasn't changed in ages (that I recall) and works fine outside of a "src"'d prefpane.

When I put it into an external prefpane the _most_ I can get it to do it create a single entry in the list, and that only happens after the second-ish time of opening the <prefwindow /> (navigating between panes doesn't seem to make it generate).

When I include the code directly into the same file as the <prefwindow /> then it works as expected.

All that aside, I remember that bit of code being a bit of a copy/paste affair without me really understanding templates...

There are some problems in prefpanes in 1.5 and 1.5.0.1. For example, a template backed by an RDF datasource can't be refreshed, and you can't find the length of a listbox. So you may be hitting a bug which is fixed in the forthcoming 1.5.0.2.

Matthew Wilson

_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to