mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 12:05:22 +00:00
Hooked up preferences
This commit is contained in:
parent
6cc6f93b58
commit
1de08fef04
@ -70,6 +70,7 @@
|
||||
appCore.setDisableCallback("DoDisableButtons();");
|
||||
appCore.setEnableCallback("DoEnableButtons();");
|
||||
dump("Adding BrowserAppCore to AppCoreManager...\n");
|
||||
dump("...probably for a second time, because the constructor of nsBaseAppCore does this!\n");
|
||||
XPAppCoresManager.Add(appCore);
|
||||
}
|
||||
} else {
|
||||
@ -309,6 +310,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
function DoPreferences()
|
||||
{
|
||||
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
|
||||
if (!toolkitCore) {
|
||||
toolkitCore = new ToolkitCore();
|
||||
if (toolkitCore) {
|
||||
toolkitCore.Init("ToolkitCore");
|
||||
}
|
||||
}
|
||||
if (toolkitCore) {
|
||||
toolkitCore.ShowWindow("resource:/res/samples/PrefsWindow.html",
|
||||
window);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</html:script>
|
||||
|
||||
@ -367,7 +383,7 @@
|
||||
<separator />
|
||||
<menuitem name="Select All" onclick="BrowserReload();"/>
|
||||
<separator />
|
||||
<menuitem name="Preferences..." onclick="BrowserReload();"/>
|
||||
<menuitem name="Preferences..." onclick="DoPreferences();"/>
|
||||
</menu>
|
||||
|
||||
<menu name="View">
|
||||
|
Loading…
Reference in New Issue
Block a user