diff --git a/suite/common/bindings/toolbar.xml b/suite/common/bindings/toolbar.xml index 1599c4d95cfc..30b579972dfd 100644 --- a/suite/common/bindings/toolbar.xml +++ b/suite/common/bindings/toolbar.xml @@ -165,6 +165,59 @@ + + + + "browser.chrome.toolbar_style" + + + + Components.classes["@mozilla.org/preferences-service;1"] + .getService(Components.interfaces.nsIPrefBranchInternal) + .QueryInterface(Components.interfaces.nsIPrefBranch) + + + + + + + + + + + + + + + + + + + + + this.prefs.addObserver(this.domain, this, false); + if (this.prefs.getIntPref(this.domain) != 2) + this.observe(this.prefs, "nsPref:changed", this.domain); + + + + this.prefs.removeObserver(this.domain, this); + + + +