Function

GtkStyleContextadd_provider_for_screen

Declaration [src]

void
gtk_style_context_add_provider_for_screen (
  GdkScreen* screen,
  GtkStyleProvider* provider,
  guint priority
)

Description [src]

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

GTK+ uses this to make styling information from GtkSettings available.

Note: If both priorities are the same, A GtkStyleProvider added through gtk_style_context_add_provider() takes precedence over another added through this function.

Available since:3.0

Parameters

screen

Type: GdkScreen

A GdkScreen.

The data is owned by the caller of the function.
provider

Type: GtkStyleProvider

A GtkStyleProvider.

The data is owned by the caller of the function.
priority

Type: guint

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.