Bug 230219 navigator button preferences only work if a navigator window is open r=dean_tessman sr=alecf a=chofmann

git-svn-id: svn://10.0.0.236/trunk@211437 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk 2006-09-14 06:08:53 +00:00
parent 357708ee39
commit b4ed4d1bc8

View File

@ -74,6 +74,12 @@ var gFocusedDocument = null;
const gButtonPrefListener =
{
domain: "browser.toolbars.showbutton",
init: function()
{
var array = pref.getChildList(this.domain, {});
for (var i in array)
this.observe(pref, "nsPref:changed", array[i]);
},
observe: function(subject, topic, prefName)
{
// verify that we're changing a button pref
@ -460,6 +466,9 @@ function Startup()
// Do all UI building here:
// Ensure button visibility matches prefs
gButtonPrefListener.init();
// set home button tooltip text
updateHomeButtonTooltip();