]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/colour.h
fixed bug with wxcolourDatabase::FindColour(); added (and documented) new Find()...
[wxWidgets.git] / include / wx / gtk / colour.h
index f299ca5949eb0be17f51d23343db42e5fc5ef343..0ae6594930b9c4340cd01d7ce1c8062cf7ecc99b 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef __GTKCOLOURH__
 #define __GTKCOLOURH__
 
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface
 #endif
 
@@ -47,7 +47,7 @@ public:
 
     // Implicit conversion from the colour name
     wxColour( const wxString &colourName ) { InitFromName(colourName); }
-    wxColour( const char *colourName ) { InitFromName(colourName); }
+    wxColour( const char *colourName ) { InitFromName( wxString::FromAscii(colourName) ); }
 #if wxUSE_UNICODE
     wxColour( const wxChar *colourName ) { InitFromName( wxString(colourName) ); }
 #endif