235
edits
(New page: The architecture patch in [https://bugzilla.mozilla.org/show_bug.cgi?id=394522 bug 394522] paved the way for migrating SeaMonkey's old XPFE preference panels to toolkit's <prefpane>s. See ...) |
|||
Line 9: | Line 9: | ||
== How to migrate a preference panel == | == How to migrate a preference panel == | ||
To ease the migration, both v5 and v6 preference windows will be accessible during the transition: | |||
* ''Edit → Preferences...'' opens the new prefwindow main window ''preferences.xul''. | |||
* ''Edit → (Legacy Prefwindow...)'' opens the old XPFE ''pref.xul''. | |||
==== 1. Tree items ==== | |||
Edit ''/suite/common/pref/preferences.xul'' (or the respective overlay) and set the following attributes on the respective <treeitem>: | |||
<treeitem id="securityItem" | |||
prefpane="security_pane" | |||
label="&security.label;" | |||
url="chrome://communicator/content/pref/pref-security.xul"> | |||
* The ''id'' attribute should adhere to the "xxxItem" meme. | |||
* The ''prefpane'' attribute should adhere to the "xxx_pane" meme. This will be the ''id'' of the preference panel to be reached by this <treeitem>. | |||
* Keep the ''label'' of the old panel. | |||
* Set the ''url'' attribute to the chrome URI of the panel to be reached by this <treeitem>. |
edits