]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/colour.cpp
removed some stray MSW code
[wxWidgets.git] / src / gtk / colour.cpp
index 21d852e55d51f658d7a45ae4d15044008b0384ec..c57698a100ec6cb66f9b848f5c97b229aa761c5b 100644 (file)
@@ -13,6 +13,7 @@
 #endif
 
 #include "wx/gdicmn.h"
 #endif
 
 #include "wx/gdicmn.h"
+#include "wx/colour.h"
 #include "wx/gtk/private.h"
 
 #include <gdk/gdk.h>
 #include "wx/gtk/private.h"
 
 #include <gdk/gdk.h>
@@ -160,7 +161,7 @@ void wxColour::InitFromName( const wxString &colourName )
     wxNode *node = (wxNode *) NULL;
     if ( (wxTheColourDatabase) && (node = wxTheColourDatabase->Find(colourName)) )
     {
     wxNode *node = (wxNode *) NULL;
     if ( (wxTheColourDatabase) && (node = wxTheColourDatabase->Find(colourName)) )
     {
-        wxColour *col = (wxColour*)node->Data();
+        wxColour *col = (wxColour*)node->GetData();
         UnRef();
         if (col) Ref( *col );
     }
         UnRef();
         if (col) Ref( *col );
     }