gdk_rgb_set_min_colors( 255 );
gdk_rgb_set_install( TRUE );
HandleColormapPrefs( void ){	PRInt32 ivalue = 0;        PRBool bvalue;	nsresult rv;	/* The default is to do nothing. INSTALLCMAP has precedence over	   NCOLS. Ignore the fact we can't do this if it fails, as it is	   not critical */ 	NS_WITH_SERVICE(nsIPref, prefs, kPrefServiceCID, &rv);	if (NS_FAILED(rv) || (!prefs)) 		return;       	/* first check ncols */ 	rv = prefs->GetIntPref(PREF_NCOLS, &ivalue);	if (NS_SUCCEEDED(rv) && ivalue >= 0 && ivalue <= 255 ) {		gdk_rgb_set_min_colors( ivalue );		return;	}	/* next check installcmap */	rv = prefs->GetBoolPref(PREF_INSTALLCMAP, &bvalue);	if (NS_SUCCEEDED(rv)) {		if ( PR_TRUE == bvalue )			gdk_rgb_set_min_colors( 255 );	// force it		else			gdk_rgb_set_min_colors( 0 );	}}