StyleContext.addProviderForDisplay

Adds a global style provider to display, which will be used in style construction for all GtkStyleContexts under display.

GTK uses this to make styling information from gtk.settings.Settings available.

Note: If both priorities are the same, A gtk.style_provider.StyleProvider added through gtk.style_context.StyleContext.addProvider takes precedence over another added through this function.

class StyleContext
static
void
addProviderForDisplay

Parameters

display gdk.display.Display
provider gtk.style_provider.StyleProvider
priority uint

the priority of the style provider. The lower it is, the earlier it will be used in the style construction. Typically this will be in the range between GTK_STYLE_PROVIDER_PRIORITY_FALLBACK and GTK_STYLE_PROVIDER_PRIORITY_USER