+bool wxColour::operator == ( const wxColour& col ) const
+{
+ if (m_refData == col.m_refData)
+ return true;
+
+ if (!m_refData || !col.m_refData)
+ return false;
+
+ const GdkColor& own = M_COLDATA->m_color;
+ const GdkColor& other = wx_static_cast(wxColourRefData*, col.m_refData)->m_color;
+ return own.red == other.red &&
+ own.blue == other.blue &&
+ own.green == other.green;