project: Port GdkScreen to GdkDisplay
API looks about the same, just switching to 'display'.
This commit is contained in:
parent
6ee8b77b95
commit
8c170d11a2
|
@ -1019,9 +1019,9 @@ mct_user_controls_init (MctUserControls *self)
|
||||||
provider = gtk_css_provider_new ();
|
provider = gtk_css_provider_new ();
|
||||||
gtk_css_provider_load_from_resource (provider,
|
gtk_css_provider_load_from_resource (provider,
|
||||||
"/org/freedesktop/MalcontentUi/ui/restricts-switch.css");
|
"/org/freedesktop/MalcontentUi/ui/restricts-switch.css");
|
||||||
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
|
gtk_style_context_add_provider_for_display (gdk_display_get_default (),
|
||||||
GTK_STYLE_PROVIDER (provider),
|
GTK_STYLE_PROVIDER (provider),
|
||||||
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION - 1);
|
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION - 1);
|
||||||
|
|
||||||
self->selected_age = (guint) -1;
|
self->selected_age = (guint) -1;
|
||||||
|
|
||||||
|
|
|
@ -443,9 +443,9 @@ mct_carousel_init (MctCarousel *self)
|
||||||
gtk_css_provider_load_from_resource (GTK_CSS_PROVIDER (provider),
|
gtk_css_provider_load_from_resource (GTK_CSS_PROVIDER (provider),
|
||||||
"/org/freedesktop/MalcontentControl/ui/carousel.css");
|
"/org/freedesktop/MalcontentControl/ui/carousel.css");
|
||||||
|
|
||||||
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
|
gtk_style_context_add_provider_for_display (gdk_display_get_default (),
|
||||||
provider,
|
provider,
|
||||||
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION - 1);
|
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION - 1);
|
||||||
|
|
||||||
g_object_unref (provider);
|
g_object_unref (provider);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue