Package: gtk

Function gtk:style-context-add-provider

Lambda List

gtk:style-context-add-provider (context provider priority)

Arguments

context -- a gtk:style-context object
provider -- a gtk:style-provider object
priority -- an unsigned integer with the priority of the style provider

Details

Adds a style provider to the style context, to be used in style construction. The lower the priority of the style provider is, the earlier it will be used in the style construction. Typically this will be in the range between the gtk:+priority-fallback+ and gtk:+priority-user+ priorities.

Note that a style provider added by this function only affects the style of the widget to which context belongs. If you want to affect the style of all widgets, use the gtk:style-context-add-provider-for-display function.

Notes

If both priorities are the same, a style provider object added through this function takes precedence over another added through the gtk:style-context-add-provider-for-display function.

Warning

This function is deprecated since 4.10. Use style classes instead. See the gtk:style-context-add-provider-for-display documentation for an example.
 

See also

2023-9-17