Changes for qnx/photon platform only. It should not affect other platforms.

Added the memory_cache_kb_size setting.


git-svn-id: svn://10.0.0.236/trunk@155540 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
amardare%qnx.com
2004-04-26 19:53:40 +00:00
parent b4ee02e103
commit fe6bbf173c
2 changed files with 7 additions and 2 deletions

View File

@@ -932,8 +932,6 @@ static void mozilla_set_default_pref( nsIPref *pref )
nsIPref *pref = moz->EmbedRef->GetPrefs();
*/
/* ATENTIE */ printf( "In mozilla_set_default_pref\n" );
/* translation set = Western European (ISO 8859-1) */
pref->SetUnicharPref( "intl.charset.default", NS_ConvertASCIItoUCS2("iso8859-1").get());

View File

@@ -641,6 +641,13 @@ mozilla_set_pref( PtWidget_t *widget, char *option, char *value )
else if( !strcmp( option, "clear_main_cache_on_exit" ) ) ; /* not used */
else if( !strcmp( option, "keep_index_file_updated" ) ) ; /* not used */
/* memory cache options */
else if( !strcmp( option, "memory_cache_kb_size" ) || !strcmp( option, "image_cache_size_KB" ) ) {
int kb = atoi( value );
if( kb <= 0 ) kb = 100; /* have a minimum threshold */
pref->SetIntPref( "browser.cache.memory.capacity", kb );
}
/* Miscellaneous options */
else if( !strcmp( option, "History_Expire" ) )
pref->SetIntPref( "browser.history_expire_days", atoi( value ) );