[swell-foop/arnaudb/wip/gtk4: 7/30] Replace GdkScreen by GdkDisplay.




commit 42090e2a621f3689495b5160d07484c15ef118b8
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue May 12 21:27:42 2020 +0200

    Replace GdkScreen by GdkDisplay.

 src/window.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/window.vala b/src/window.vala
index 3235a25..c130ccf 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -135,9 +135,9 @@ private class SwellFoopWindow : ApplicationWindow
     {
         CssProvider css_provider = new CssProvider ();
         css_provider.load_from_resource ("/org/gnome/SwellFoop/ui/swell-foop.css");
-        Gdk.Screen? gdk_screen = Gdk.Screen.get_default ();
-        if (gdk_screen != null) // else..?
-            StyleContext.add_provider_for_screen ((!) gdk_screen, css_provider, 
STYLE_PROVIDER_PRIORITY_APPLICATION);
+        Gdk.Display? gdk_display = Gdk.Display.get_default ();
+        if (gdk_display != null) // else..?
+            StyleContext.add_provider_for_display ((!) gdk_display, css_provider, 
STYLE_PROVIDER_PRIORITY_APPLICATION);
 
         Builder builder = new Builder.from_resource ("/org/gnome/SwellFoop/ui/first-run-stack.ui");
         var stack = (Stack) builder.get_object ("first_run_stack");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]