[gnome-taquin/arnaudb/wip/gtk4: 67/108] Replace GdkScreen by GdkDisplay.




commit 12469fa7dc3f8f13f3291f6d7daa9766563b432c
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Feb 19 19:03:46 2020 +0100

    Replace GdkScreen by GdkDisplay.

 src/game-window.vala     | 6 +++---
 src/new-game-screen.vala | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/game-window.vala b/src/game-window.vala
index eedbebc..a21470d 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -69,9 +69,9 @@ private class GameWindow : BaseWindow, AdaptativeWidget
         {
             CssProvider css_provider = new CssProvider ();
             css_provider.load_from_resource ((!) css_resource);
-            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);
         }
 
         /* window actions */
diff --git a/src/new-game-screen.vala b/src/new-game-screen.vala
index 3e56b2f..9b362ac 100644
--- a/src/new-game-screen.vala
+++ b/src/new-game-screen.vala
@@ -33,9 +33,9 @@ private class NewGameScreen : Box, AdaptativeWidget
     {
         CssProvider css_provider = new CssProvider ();
         css_provider.load_from_resource ("/org/gnome/Taquin/ui/new-game-screen.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);
 
         fix_race ();
     }


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