X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40989e46b86777dd211faeb3e5d2366cdcc6d8cd..2ee322d90c0c0f39d4a3c5f0c942bbda4c7baa1a:/src/gtk1/colour.cpp?ds=sidebyside diff --git a/src/gtk1/colour.cpp b/src/gtk1/colour.cpp index d4ba21bc35..82712095cd 100644 --- a/src/gtk1/colour.cpp +++ b/src/gtk1/colour.cpp @@ -12,7 +12,10 @@ #include "wx/colour.h" -#include "wx/gdicmn.h" +#ifndef WX_PRECOMP + #include "wx/gdicmn.h" +#endif + #include "wx/gtk1/private.h" #include @@ -44,7 +47,7 @@ public: m_hasPixel = data.m_hasPixel; } - ~wxColourRefData() + virtual ~wxColourRefData() { FreeColour(); } @@ -166,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,7 +228,7 @@ GdkColor *wxColour::GetColor() const bool wxColour::FromString(const wxChar *str) { GdkColor colGDK; - if ( gdk_color_parse( wxGTK_CONV_SYS( str ), &colGDK ) ) + if ( gdk_color_parse( str, &colGDK ) ) { UnRef();