Method

GtkStylePropertiesget_property

deprecated: 3.16 since: 3.0

Declaration [src]

gboolean
gtk_style_properties_get_property (
  GtkStyleProperties* props,
  const gchar* property,
  GtkStateFlags state,
  GValue* value
)

Description [src]

Gets a style property from props for the given state. When done with value, g_value_unset() needs to be called to free any allocated memory.

Available since: 3.0

Deprecated since: 3.16

GtkStyleProperties are deprecated.

Parameters

property

Type: const gchar*

Style property name.

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

Type: GtkStateFlags

State to retrieve the property value for.

value

Type: GValue

Return location for the style property value.

The argument will be set by the function.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.

Return value

Type: gboolean

TRUE if the property exists in props, FALSE otherwise.