RcProperty.parseColor

A GtkRcPropertyParser for use with Settings.installPropertyParser or Widget.classInstallStylePropertyParser 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.

struct RcProperty
static
bool
parseColor

Parameters

pspec ParamSpec
gstring StringG

the GString to be parsed

propertyValue Value

a gobject.Value which must hold gdk.Color values.

Return Value

Type: bool

TRUE if gstring could be parsed and property_value has been set to the resulting gdk.Color