Package: gtk

Function gtk-style-context-section

Lambda List

gtk-style-context-section (context property)

Arguments

context -- a gtk-style-context object
property -- a string with the name of the style property

Return Value

Returns nil or the gtk-css-section instance where the property was defined.

Details

Queries the location in the CSS where property was defined for the current style context. Note that the state to be queried is taken from the gtk-style-context-state function.

If the location is not available, nil will be returned. The location might not be available for various reasons, such as the property being overridden, the property argument 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 nil.
 

See also

2021-11-26