RcProperty.parseEnum

A #GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() 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

a #GParamSpec

gstring StringG

the #GString to be parsed

propertyValue Value

a #GValue which must hold enum values.

Return: %TRUE if @gstring could be parsed and @property_value has been set to the resulting #GEnumValue.

Meta