22 var
Cc = Components.classes;
23 var
Ci = Components.interfaces;
33 windowMediator =
Cc[
"@mozilla.org/appshell/window-mediator;1"].
35 window = windowMediator.getMostRecentWindow(
"Songbird:Main");
38 window.SBOpenPreferences(
"radioPrefsPane");
41 handleLoad:
function() {
44 updateStates:
function() {
45 var cBitRateBox = document.getElementById(
"checkBitRatePref");
46 var bitRateMenu = document.getElementById(
"bitRateMenu");
47 var listenersText = document.getElementById(
"textListenersPref");
48 var cListenersBox = document.getElementById(
"checkListenersPref");
51 cListenersBox.checked);
52 if (cBitRateBox.checked)
53 bitRateMenu.disabled =
false;
55 bitRateMenu.disabled =
true;
56 if (cListenersBox.checked)
57 listenersText.disabled =
false;
59 listenersText.disabled =
true;
getService(Ci.sbIFaceplateManager)
function openPreferences(paneID, extraArgs)
const shoutcastCheckListeners
const shoutcastCheckBitRate