RcProperty.parseEnum

A #GtkRcPropertyParser for use with gtk.settings.Settings.installPropertyParser or gtk.widget_class.WidgetClass.installStylePropertyParser 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.

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 enum values.

Return Value

Type: bool

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