[gnome-tetravex/arnaudb/wip/gtk4: 21/49] Replace GdkScreen by GdkDisplay.




commit 1cc74a27a7653d193f0562724e551ecc7d1c6ebe
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Feb 20 20:43:23 2020 +0100

    Replace GdkScreen by GdkDisplay.

 src/gnome-tetravex.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index fbbe097..37a97ad 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -300,9 +300,9 @@ private class Tetravex : Gtk.Application
 
         CssProvider css_provider = new CssProvider ();
         css_provider.load_from_resource ("/org/gnome/Tetravex/tetravex.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);
 
         window = (ApplicationWindow) builder.get_object ("gnome-tetravex-window");
         this.add_window (window);


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