moz->MyBrowser->mPrefs->SetBoolPref( "browser.display.use_document_colors", PR_TRUE ); moz->MyBrowser->mPrefs->SetBoolPref( "browser.underline_anchors", PR_TRUE ); moz->MyBrowser->mPrefs->SetIntPref( "font.size.variable.x-western", VOYAGER_TEXTSIZE2 ); moz->MyBrowser->mPrefs->SetIntPref( "browser.history_expire_days", 4 ); moz->MyBrowser->mPrefs->SetIntPref( "browser.sessionhistory.max_entries", 50 ); moz->MyBrowser->mPrefs->SetIntPref( "browser.cache.check_doc_frequency", 2 ); moz->MyBrowser->mPrefs->SetBoolPref( "browser.cache.disk.enable", PR_TRUE ); moz->MyBrowser->mPrefs->SetIntPref( "browser.cache.disk.capacity", 5000 ); moz->MyBrowser->mPrefs->SetIntPref( "network.http.connect.timeout", 2400 ); moz->MyBrowser->mPrefs->SetIntPref( "network.http.max-connections", 4 ); moz->MyBrowser->mPrefs->SetCharPref( "network.proxy.http_port", "80" ); moz->MyBrowser->mPrefs->SetCharPref( "network.proxy.ftp_port", "80" ); moz->MyBrowser->mPrefs->SetCharPref( "network.proxy.gopher_port", "80" );
pref->SetBoolPref( "browser.display.use_document_colors", PR_TRUE ); pref->SetBoolPref( "browser.underline_anchors", PR_TRUE ); pref->SetIntPref( "font.size.variable.x-western", VOYAGER_TEXTSIZE2 ); pref->SetIntPref( "browser.history_expire_days", 4 ); pref->SetIntPref( "browser.sessionhistory.max_entries", 50 ); pref->SetIntPref( "browser.cache.check_doc_frequency", 2 ); pref->SetBoolPref( "browser.cache.disk.enable", PR_TRUE ); pref->SetIntPref( "browser.cache.disk.capacity", 5000 ); pref->SetIntPref( "network.http.connect.timeout", 2400 ); pref->SetIntPref( "network.http.max-connections", 4 ); pref->SetCharPref( "network.proxy.http_port", "80" ); pref->SetCharPref( "network.proxy.ftp_port", "80" ); pref->SetCharPref( "network.proxy.gopher_port", "80" );
static void mozilla_set_default_pref( PtWidget_t *widget ) {	static int already_set = 0;	PtMozillaWidget_t *moz = ( PtMozillaWidget_t * ) widget;	if( already_set ) return;	already_set = 1;/* HTML Options */		moz->MyBrowser->mPrefs->SetUnicharPref( "browser.visited_color", NS_ConvertASCIItoUCS2("#008080").get() );		moz->MyBrowser->mPrefs->SetUnicharPref( "browser.anchor_color", NS_ConvertASCIItoUCS2("#0000ff").get() );		moz->MyBrowser->mPrefs->SetUnicharPref( "browser.display.foreground_color", NS_ConvertASCIItoUCS2("#000000").get() );		moz->MyBrowser->mPrefs->SetUnicharPref( "browser.display.background_color", NS_ConvertASCIItoUCS2("#ffffff").get() );		moz->MyBrowser->mPrefs->SetBoolPref( "browser.display.use_document_colors", PR_TRUE );		moz->MyBrowser->mPrefs->SetBoolPref( "browser.underline_anchors", PR_TRUE );		moz->MyBrowser->mPrefs->SetIntPref( "font.size.variable.x-western", VOYAGER_TEXTSIZE2 );		moz->MyBrowser->mPrefs->SetIntPref( "browser.history_expire_days", 4 );		moz->MyBrowser->mPrefs->SetIntPref( "browser.sessionhistory.max_entries", 50 );		moz->MyBrowser->mPrefs->SetIntPref( "browser.cache.check_doc_frequency", 2 );		moz->MyBrowser->mPrefs->SetBoolPref( "browser.cache.disk.enable", PR_TRUE );		moz->MyBrowser->mPrefs->SetIntPref( "browser.cache.disk.capacity", 5000 );		moz->MyBrowser->mPrefs->SetIntPref( "network.http.connect.timeout", 2400 );		moz->MyBrowser->mPrefs->SetIntPref( "network.http.max-connections", 4 );		moz->MyBrowser->mPrefs->SetCharPref( "network.proxy.http_port", "80" );		moz->MyBrowser->mPrefs->SetCharPref( "network.proxy.ftp_port", "80" );		moz->MyBrowser->mPrefs->SetCharPref( "network.proxy.gopher_port", "80" );	}