Function

GtkStylePropertieslookup_property

Declaration [src]

gboolean
gtk_style_properties_lookup_property (
  const gchar* property_name,
  GtkStylePropertyParser* parse_func,
  GParamSpec** pspec
)

Description [src]

Returns TRUE if a property has been registered, if pspec or parse_func are not NULL, the GParamSpec and parsing function will be respectively returned.

Available since:3.0
Deprecated since:3.8

This code could only look up custom properties and those are deprecated.

Parameters

property_name

Type: const gchar*

Property name to look up.

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

Type: GtkStylePropertyParser

Return location for the parse function.

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

Type: GParamSpec

Return location for the GParamSpec.

The argument will be set by the function.
The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE if the property is registered, FALSE otherwise.