X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7cacb43db1e69b87b257a67912b4d52995b070a..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/include/wx/gtk/colour.h?ds=sidebyside diff --git a/include/wx/gtk/colour.h b/include/wx/gtk/colour.h index 01b49c45aa..4c98208518 100644 --- a/include/wx/gtk/colour.h +++ b/include/wx/gtk/colour.h @@ -27,7 +27,6 @@ public: virtual ~wxColour(); - bool Ok() const { return IsOk(); } bool IsOk() const { return m_refData != NULL; } bool operator == ( const wxColour& col ) const; @@ -41,19 +40,13 @@ public: // Implementation part void CalcPixel( GdkColormap *cmap ); int GetPixel() const; -#ifdef __WXGTK24__ const GdkColor *GetColor() const; -#else - // GDK functions from old gtk2 versions take non-const color parameters, - // too many uses to deal with individually - GdkColor *GetColor() const; -#endif protected: virtual void InitRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a); - virtual bool FromString(const wxChar *str); + virtual bool FromString(const wxString& str); private: DECLARE_DYNAMIC_CLASS(wxColour)