nsPSPrinterList::nsPSPrinterList() { // Should we try cups? if (Preferences::GetBool("print.postscript.cups.enabled", true) && !gCupsShim.IsInitialized()) { gCupsShim.Init(); } }
/* Initialize the printer manager object */ nsresult nsPSPrinterList::Init() { // Should we try cups? PRBool useCups = Preferences::GetBool("print.postscript.cups.enabled", PR_TRUE); if (useCups && !gCupsShim.IsInitialized()) { gCupsShim.Init(); } return NS_OK; }