#include "wx/colour.h"
-#include "wx/gdicmn.h"
+#ifndef WX_PRECOMP
+ #include "wx/gdicmn.h"
+#endif
+
#include "wx/gtk1/private.h"
#include <gdk/gdk.h>
m_hasPixel = data.m_hasPixel;
}
- ~wxColourRefData()
+ virtual ~wxColourRefData()
{
FreeColour();
}
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();
return &M_COLDATA->m_color;
}
-bool wxColour::FromString(const wxChar *str)
+bool wxColour::FromString(const wxString& str)
{
GdkColor colGDK;
- if ( gdk_color_parse( wxGTK_CONV_SYS( str ), &colGDK ) )
+ if ( gdk_color_parse( wxGTK_CONV(str), &colGDK ) )
{
UnRef();