chrome/content/dkim.js
/*
	 * gets called called whenever an event occurs on the preference
	 */
gets called called whenever an event occurs on the preference
gets called called whenever an event occurs on the preference
function Display_observe(subject, topic, data) {
		try {
			if (topic !== "nsPref:changed") {
				return;
			}
			switch(data) {
				case "statusbarpanel.result.style":
					if (prefs.getIntPref("statusbarpanel.result.style") ===
						DKIM_Verifier.PREF.STATUSBARPANEL.RESULT.STYLE.TEST)
					{
						statusbarPanel.useIcons = false;
					} else {
						statusbarPanel.useIcons = true;
					}
					break;
				default:
			}
		} catch (e) {
			log.fatal(e);
		}
	}
function Display_observe ( subject , topic , data ) { try { if ( topic !== "nsPref:changed" ) { return ; } switch ( data ) { case "statusbarpanel.result.style" : if ( prefs . getIntPref ( "statusbarpanel.result.style" ) === DKIM_Verifier . PREF . STATUSBARPANEL . RESULT . STYLE . TEST ) { statusbarPanel . useIcons = false ; } else { statusbarPanel . useIcons = true ; } break ; default : } } catch ( e ) { log . fatal ( e ) ; } }
gets called called whenever an event occurs on the preference
gets called called whenever an event occurs on the preference
// subject is the nsIPrefBranch we're observing (after appropriate QI) // data is the name of the pref that's been changed (relative to aSubject) // ignore other options