project: Port GdkScreen to GdkDisplay
API looks about the same, just switching to 'display'.
This commit is contained in:
parent
6ee8b77b95
commit
8c170d11a2
|
@ -1019,7 +1019,7 @@ mct_user_controls_init (MctUserControls *self)
|
|||
provider = gtk_css_provider_new ();
|
||||
gtk_css_provider_load_from_resource (provider,
|
||||
"/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_PRIORITY_APPLICATION - 1);
|
||||
|
||||
|
|
|
@ -443,7 +443,7 @@ mct_carousel_init (MctCarousel *self)
|
|||
gtk_css_provider_load_from_resource (GTK_CSS_PROVIDER (provider),
|
||||
"/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,
|
||||
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION - 1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue