Method

VtePropertiesget_property_enum

unstable since: 0.82

Declaration [src]

gboolean
vte_properties_get_property_enum (
  const VteProperties* properties,
  const char* prop,
  GType gtype,
  int64_t* valuep
)

Description [src]

For a VTE_PROPERTY_STRING property, sets value to props value, parsed as a value of the enumeration type gtype, or to 0 if prop is unset, or if its value could not be parsed as a value of the enumeration type, or if prop is not a registered property.

Available since: 0.82

Parameters

prop

Type: const char*

A property name of a VTE_PROPERTY_STRING property.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
gtype

Type: GType

A GType of an enum type.

valuep

Type: int64_t*

A location to store the value, or NULL.

The argument will be set by the function.
The argument can be NULL.

Return value

Type: gboolean

TRUE iff the property was set and could be parsed a a value of the enumeration type.