[swell-foop/arnaudb/wip/gtk4: 23/44] Replace GdkScreen by GdkDisplay.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [swell-foop/arnaudb/wip/gtk4: 23/44] Replace GdkScreen by GdkDisplay.
- Date: Thu, 3 Sep 2020 14:01:36 +0000 (UTC)
commit ed1f21b9fc12c60cc15c1e7dceaf18ccacf9cd38
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue May 12 21:27:42 2020 +0200
Replace GdkScreen by GdkDisplay.
src/window.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/window.vala b/src/window.vala
index 3235a25..c130ccf 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -135,9 +135,9 @@ private class SwellFoopWindow : ApplicationWindow
{
CssProvider css_provider = new CssProvider ();
css_provider.load_from_resource ("/org/gnome/SwellFoop/ui/swell-foop.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);
Builder builder = new Builder.from_resource ("/org/gnome/SwellFoop/ui/first-run-stack.ui");
var stack = (Stack) builder.get_object ("first_run_stack");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]