]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/colour.cpp
added vendor display name (for consistency with app display name &c) (patch 1831303)
[wxWidgets.git] / src / gtk1 / colour.cpp
index 82712095cd80d61c8b08333b7d29235b24c2a89a..e5234be3d45a63a4e2423b6e4e476c2f3a9e3e20 100644 (file)
@@ -225,10 +225,10 @@ GdkColor *wxColour::GetColor() const
     return &M_COLDATA->m_color;
 }
 
     return &M_COLDATA->m_color;
 }
 
-bool wxColour::FromString(const wxChar *str)
+bool wxColour::FromString(const wxString& str)
 {
     GdkColor colGDK;
 {
     GdkColor colGDK;
-    if ( gdk_color_parse( str, &colGDK ) )
+    if ( gdk_color_parse( wxGTK_CONV(str), &colGDK ) )
     {
         UnRef();
 
     {
         UnRef();