[gnome-games/wip/exalm/gtk4: 210/238] application: Replace GdkScreen with GdkDisplay



commit a451466a7ea32cd1ad29fe35163f2fc7dd49750a
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Jul 29 13:39:36 2018 +0500

    application: Replace GdkScreen with GdkDisplay

 src/ui/application.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 97037cc4..2533f55e 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -206,9 +206,9 @@ public class Games.Application : Gtk.Application {
 
                Gtk.Settings.get_default ().gtk_application_prefer_dark_theme = true;
 
-               var screen = Gdk.Screen.get_default ();
+               var display = Gdk.Display.get_default ();
                var provider = load_css ("gtk-style.css");
-               Gtk.StyleContext.add_provider_for_screen (screen, provider, 600);
+               Gtk.StyleContext.add_provider_for_display (display, provider, 600);
 
                init_game_sources ();
                load_game_list.begin ();


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