[gnome-mines/arnaudb/wip/gtk4: 18/40] Replace GdkScreen by GdkDisplay.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mines/arnaudb/wip/gtk4: 18/40] Replace GdkScreen by GdkDisplay.
- Date: Mon, 14 Sep 2020 16:00:28 +0000 (UTC)
commit 55685b34dab069d8c25b21dfac68d23249f71bb7
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Apr 13 23:36:52 2020 +0200
Replace GdkScreen by GdkDisplay.
src/gnome-mines.vala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-mines.vala b/src/gnome-mines.vala
index ca684f0..0195a35 100644
--- a/src/gnome-mines.vala
+++ b/src/gnome-mines.vala
@@ -146,11 +146,11 @@ public class Mines : Gtk.Application
try
{
if (is_switch) {
- StyleContext.remove_provider_for_screen (Gdk.Screen.get_default (), theme_provider);
+ StyleContext.remove_provider_for_display (Gdk.Display.get_default (), theme_provider);
}
theme_provider = new CssProvider ();
theme_provider.load_from_path (theme_css_path);
- StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), theme_provider,
STYLE_PROVIDER_PRIORITY_APPLICATION);
+ StyleContext.add_provider_for_display (Gdk.Display.get_default (), theme_provider,
STYLE_PROVIDER_PRIORITY_APPLICATION);
}
catch (GLib.Error e)
{
@@ -161,7 +161,7 @@ public class Mines : Gtk.Application
window.get_window ().invalidate_rect (null, true);
window.queue_draw ();
}
- StyleContext.reset_widgets (Gdk.Screen.get_default ());
+ StyleContext.reset_widgets (Gdk.Display.get_default ());
}
protected override void startup ()
@@ -180,7 +180,7 @@ public class Mines : Gtk.Application
var css_provider = new CssProvider ();
css_provider.load_from_resource ("/org/gnome/Mines/gnome-mines.css");
- StyleContext.add_provider_for_screen (Gdk.Screen.get_default (), css_provider,
STYLE_PROVIDER_PRIORITY_APPLICATION);
+ StyleContext.add_provider_for_display (Gdk.Display.get_default (), css_provider,
STYLE_PROVIDER_PRIORITY_APPLICATION);
var ui_builder = new Builder ();
try
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]