]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/settings.cpp
get rid of several dozen of warnings when using g++ >= 4.2 about string literals...
[wxWidgets.git] / src / gtk / settings.cpp
index cfd73c9bf95ce8139e8e7fba52a3ea260c13bf4a..c7f240d747fa00129aa9b5bc10fbdffded4b8436 100644 (file)
@@ -90,7 +90,6 @@ enum wxGtkColourType
 {
     wxGTK_FG,
     wxGTK_BG,
-    wxGTK_TEXT,
     wxGTK_BASE
 };
 
@@ -151,10 +150,6 @@ static bool GetColourFromGTKWidget(GdkColor& gdkColor,
                 gdkColor = def->bg[state];
                 break;
 
-            case wxGTK_TEXT:
-                gdkColor = def->text[state];
-                break;
-
             case wxGTK_BASE:
                 gdkColor = def->base[state];
                 break;
@@ -326,7 +321,7 @@ wxColour wxSystemSettingsNative::GetColour( wxSystemColour index )
                 gdkColor.green =
                 gdkColor.blue = 0;
                 GetColourFromGTKWidget(
-                    gdkColor, wxGTK_BUTTON, GTK_STATE_SELECTED, wxGTK_TEXT);
+                    gdkColor, wxGTK_BUTTON, GTK_STATE_SELECTED, wxGTK_FG);
                 gs_objects.m_colHighlightText = wxColour(gdkColor);
             }
             color = gs_objects.m_colHighlightText;