RcProperty.parseEnum

A GtkRcPropertyParser for use with Settings.installPropertyParser or Widget.classInstallStylePropertyParser which parses a single enumeration value.

The enumeration value can be specified by its name, its nickname or its numeric value. For consistency with flags parsing, the value may be surrounded by parentheses.

struct RcProperty
static
bool
parseEnum

Parameters

pspec ParamSpec
gstring StringG

the GString to be parsed

propertyValue Value

a gobject.Value which must hold enum values.

Return Value

Type: bool

TRUE if gstring could be parsed and property_value has been set to the resulting GEnumValue