+#endif
+}
+
+#ifdef __WXGTK3__
+wxColour::operator const GdkRGBA*() const
+{
+ const GdkRGBA* c = NULL;
+ if (IsOk())
+ c = &M_COLDATA->m_gdkRGBA;
+ return c;
+}
+#endif
+
+bool wxColour::FromString(const wxString& str)
+{
+#ifdef __WXGTK3__
+ GdkRGBA gdkRGBA;
+ if (gdk_rgba_parse(&gdkRGBA, wxGTK_CONV_SYS(str)))
+ {
+ *this = wxColour(gdkRGBA);
+ return true;
+ }
+#else
+ GdkColor colGDK;
+ if ( gdk_color_parse( wxGTK_CONV_SYS( str ), &colGDK ) )
+ {
+ *this = wxColour(colGDK);
+ return true;
+ }
+#endif
+
+ return wxColourBase::FromString(str);