From 5052d3c4c800260435b754f5e373f1764fc02526 Mon Sep 17 00:00:00 2001 From: "ramiro%netscape.com" Date: Mon, 3 May 1999 21:32:15 +0000 Subject: [PATCH] Part of fix for bugs 4445, 4768. Let the default rendering mode on unix be "native" as it is on mac and win. --- layout/base/nsPresContext.cpp | 15 +-------------- layout/base/src/nsPresContext.cpp | 15 +-------------- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index 00cd4a454c03..36d00abfacec 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -180,20 +180,7 @@ nsPresContext::GetUserPreferences() if (NS_OK == mPrefs->GetIntPref("nglayout.widget.mode", &prefInt)) { mWidgetRenderingMode = (enum nsWidgetRendering)prefInt; // bad cast - } else -#if defined XP_UNIX - // XXX for Unix only (Gtk+) -- make the default rendering mode Gfx. The - // Gtk+ implementation is buggy, and we'll eventually be going in this - // direction anyway of using gfx to render controls. Need to take out - // this #ifdef eventually for Win and Mac. - // - // To enable native widgets, edit ~/.mozilla/prefs50.js, and add the - // line user_pref("nglayout.widget.mode", 1);. Syd 4/20/99 - - mWidgetRenderingMode = eWidgetRendering_Gfx; -#else - mWidgetRenderingMode = eWidgetRendering_Native; -#endif + } PRBool usePrefColors = PR_TRUE; #ifdef _WIN32 diff --git a/layout/base/src/nsPresContext.cpp b/layout/base/src/nsPresContext.cpp index 00cd4a454c03..36d00abfacec 100644 --- a/layout/base/src/nsPresContext.cpp +++ b/layout/base/src/nsPresContext.cpp @@ -180,20 +180,7 @@ nsPresContext::GetUserPreferences() if (NS_OK == mPrefs->GetIntPref("nglayout.widget.mode", &prefInt)) { mWidgetRenderingMode = (enum nsWidgetRendering)prefInt; // bad cast - } else -#if defined XP_UNIX - // XXX for Unix only (Gtk+) -- make the default rendering mode Gfx. The - // Gtk+ implementation is buggy, and we'll eventually be going in this - // direction anyway of using gfx to render controls. Need to take out - // this #ifdef eventually for Win and Mac. - // - // To enable native widgets, edit ~/.mozilla/prefs50.js, and add the - // line user_pref("nglayout.widget.mode", 1);. Syd 4/20/99 - - mWidgetRenderingMode = eWidgetRendering_Gfx; -#else - mWidgetRenderingMode = eWidgetRendering_Native; -#endif + } PRBool usePrefColors = PR_TRUE; #ifdef _WIN32