X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..fc9361e3ec5b81a7e8c32d93a03aea0b2cd3e045:/src/gtk1/colour.cpp diff --git a/src/gtk1/colour.cpp b/src/gtk1/colour.cpp index 7adf4b1dc2..e5234be3d4 100644 --- a/src/gtk1/colour.cpp +++ b/src/gtk1/colour.cpp @@ -169,7 +169,8 @@ wxObjectRefData *wxColour::CloneRefData(const wxObjectRefData *data) const return new wxColourRefData(*(wxColourRefData *)data); } -void wxColour::InitWith( unsigned char red, unsigned char green, unsigned char blue ) +void wxColour::InitRGBA(unsigned char red, unsigned char green, unsigned char blue, + unsigned char WXUNUSED(alpha)) { AllocExclusive(); @@ -224,10 +225,10 @@ GdkColor *wxColour::GetColor() const return &M_COLDATA->m_color; } -bool wxColour::FromString(const wxChar *str) +bool wxColour::FromString(const wxString& str) { GdkColor colGDK; - if ( gdk_color_parse( str, &colGDK ) ) + if ( gdk_color_parse( wxGTK_CONV(str), &colGDK ) ) { UnRef();