RcProperty.parseColor

bool parseColor(gobject.param_spec.ParamSpec pspec, glib.string_.String gstring, gobject.value.Value propertyValue)

A #GtkRcPropertyParser for use with [gtk.settings.Settings.installPropertyParser] or [gtk.widget_class.WidgetClass.installStylePropertyParser] which parses a color given either by its name or in the form { red, green, blue } where red, green and blue are integers between 0 and 65535 or floating-point numbers between 0 and 1.

Parameters

pspeca #GParamSpec
gstringthe #GString to be parsed
propertyValuea #GValue which must hold #GdkColor values.

Returns

true if gstring could be parsed and property_value

has been set to the resulting #GdkColor.