RcProperty.parseColor

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

pspec gobject.param_spec.ParamSpec

a #GParamSpec

gstring glib.string_.String

the #GString to be parsed

propertyValue gobject.value.Value

a #GValue which must hold #GdkColor values.

Return Value

Type: bool

true if gstring could be parsed and property_value has been set to the resulting #GdkColor.