[gnome-klotski/arnaudb/wip/gtk4: 3/25] Replace GdkScreen by GdkDisplay.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-klotski/arnaudb/wip/gtk4: 3/25] Replace GdkScreen by GdkDisplay.
- Date: Tue, 29 Sep 2020 13:44:31 +0000 (UTC)
commit 3e3206de07f6a7a87355e88f9d3f5817a1470eba
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Mar 5 18:43:20 2020 +0100
Replace GdkScreen by GdkDisplay.
src/klotski-window.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/klotski-window.vala b/src/klotski-window.vala
index f6f2836..8df5bb7 100644
--- a/src/klotski-window.vala
+++ b/src/klotski-window.vala
@@ -529,9 +529,9 @@ private class KlotskiWindow : ApplicationWindow
{
CssProvider css_provider = new CssProvider ();
css_provider.load_from_resource ("/org/gnome/Klotski/ui/klotski.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);
settings = new GLib.Settings ("org.gnome.Klotski");
set_default_size (settings.get_int ("window-width"), settings.get_int ("window-height"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]