Method
GtkStyleContextget_section
Declaration [src]
GtkCssSection*
gtk_style_context_get_section (
GtkStyleContext* context,
const gchar* property
)
Description [src]
Queries the location in the CSS where property
was defined for the
current context
. Note that the state to be queried is taken from gtk_style_context_get_state().
If the location is not available, NULL
will be returned. The
location might not be available for various reasons, such as the
property being overridden, property
not naming a supported CSS
property or tracking of definitions being disabled for performance reasons.
Shorthand CSS properties cannot be queried for a location and will
always return NULL
.
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.
Return value
Type: GtkCssSection
NULL
or the section where a value
for property
was defined.
The returned data is owned by the instance. |
The return value can be NULL . |