mainwin.js File Reference

Go to the source code of this file.

Functions

 if (!titlebar)
 
hideButton setAttribute ("hidden","false")
 
 addEventListener ("unload", systray.destroy, false)
 
systray _prefBranch addObserver ("sb.", systray, false)
 
systray observePref (systray._prefBranch,"nsPref:changed","sb.notify")
 
systray attachRemotes ()
 

Variables

var systray
 
var titlebar = document.getElementsByTagName("sb-sys-titlebar")[0]
 
var sysButtons
 
var hideButton = document.getAnonymousElementByAttribute(sysButtons, "sbid", "hide")
 
window onHideButtonClick = systray.onHideButtonClick
 
systray _prefBranch
 

Function Documentation

addEventListener ( "unload"  ,
systray.  destroy,
false   
)
systray _prefBranch addObserver ( "sb."  ,
systray  ,
false   
)
systray attachRemotes ( )
if ( titlebar)

Definition at line 128 of file mainwin.js.

systray observePref ( systray.  _prefBranch,
"nsPref:changed"  ,
"sb.notify"   
)
hideButton setAttribute ( "hidden"  ,
"false"   
)

Variable Documentation

systray _prefBranch
Initial value:
= Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService)
.getBranch("extensions.minimizetotray.")
.QueryInterface(Components.interfaces.nsIPrefBranch2)

Definition at line 150 of file mainwin.js.

hideButton = document.getAnonymousElementByAttribute(sysButtons, "sbid", "hide")

Definition at line 138 of file mainwin.js.

window onHideButtonClick = systray.onHideButtonClick

Definition at line 145 of file mainwin.js.

var sysButtons
Initial value:
= document.getAnonymousNodes(titlebar)[0]
.getElementsByTagNameNS(NS_XUL,"sb-sys-buttons")[0]
var titlebar
Definition: mainwin.js:127

Definition at line 132 of file mainwin.js.

var systray

Definition at line 3 of file mainwin.js.

var titlebar = document.getElementsByTagName("sb-sys-titlebar")[0]

Definition at line 127 of file mainwin.js.