[gnome-nibbles/arnaudb/wip/gtk4: 19/62] Replace GdkScreen by GdkDisplay.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/wip/gtk4: 19/62] Replace GdkScreen by GdkDisplay.
- Date: Fri, 19 Jun 2020 14:53:37 +0000 (UTC)
commit f44c6abbf46fbf56c91b862af45753673ea06c0a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon May 25 14:44:24 2020 +0200
Replace GdkScreen by GdkDisplay.
src/gnome-nibbles.vala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 6cc6dad..8f1552d 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -85,7 +85,9 @@ private class Nibbles : Gtk.Application
var css_provider = new CssProvider ();
css_provider.load_from_resource ("/org/gnome/nibbles/ui/nibbles.css");
- StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), 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);
add_action_entries (action_entries, this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]