[lightsoff/arnaudb/wip/gtk4: 2/28] Replace GdkScreen by GdkDisplay.




commit 9af4df0b3ddedd4649e3ccf3d2ba8e2b2a6fe58a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Oct 26 16:50:17 2020 +0100

    Replace GdkScreen by GdkDisplay.

 src/lightsoff-window.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/lightsoff-window.vala b/src/lightsoff-window.vala
index 06dea3b..ddb3a1c 100644
--- a/src/lightsoff-window.vala
+++ b/src/lightsoff-window.vala
@@ -61,9 +61,9 @@ private class LightsoffWindow : ManagedWindow
 
         var provider = new Gtk.CssProvider ();
         provider.load_from_resource ("/org/gnome/LightsOff/ui/lightsoff.css");
-        Gdk.Screen? gdk_screen = Gdk.Screen.get_default ();
-        if (gdk_screen != null) // else..?
-            StyleContext.add_provider_for_screen ((!) gdk_screen, 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, provider, 
STYLE_PROVIDER_PRIORITY_APPLICATION);
     }
 
     internal LightsoffWindow ()


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