StyleContext.addProviderForDisplay

void addProviderForDisplay(gdk.display.Display display, gtk.style_provider.StyleProvider provider, uint priority)

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.

Parameters

displaya gdk.display.Display
providera gtk.style_provider.StyleProvider
prioritythe 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.types.STYLE_PROVIDER_PRIORITY_FALLBACK and gtk.types.STYLE_PROVIDER_PRIORITY_USER