XULPopupListenerImpl* self = NS_STATIC_CAST(XULPopupListenerImpl*, inData); if ( self ) { nsresult rv = NS_OK; NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_CONTRACTID, &rv); if ( prefs ) rv = prefs->GetBoolPref("browser.chrome.toolbar_tips", &(self->mShowTooltips));
nsresult rv = NS_OK; NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_CONTRACTID, &rv); if ( prefs ) { rv = prefs->GetBoolPref("browser.chrome.toolbar_tips", &sShowTooltips);
XULPopupListenerImpl :: sTooltipPrefChanged (const char *, void * inData ){  XULPopupListenerImpl* self = NS_STATIC_CAST(XULPopupListenerImpl*, inData);  if ( self ) {    nsresult rv = NS_OK;    NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_CONTRACTID, &rv);    if ( prefs )      rv = prefs->GetBoolPref("browser.chrome.toolbar_tips", &(self->mShowTooltips));  }    return NS_OK;} // sTooltipPrefChanged