aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-17 16:04:18 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-17 16:04:18 +0200
commit8dd317d9572ce879b62bb311863b7c08a2547fe7 (patch)
treec89152b8d3ee07ba76676729aac43919a2032ae4 /src/arctica-greeter.vala
parentc9f0793b67d2eea7f95f83211e4a9d729fbcc024 (diff)
downloadarctica-greeter-8dd317d9572ce879b62bb311863b7c08a2547fe7.tar.gz
arctica-greeter-8dd317d9572ce879b62bb311863b7c08a2547fe7.tar.bz2
arctica-greeter-8dd317d9572ce879b62bb311863b7c08a2547fe7.zip
Silence GTK 3.22 warnings relating to deprecation in Gdk.Screen.
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r--src/arctica-greeter.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 73d6650..25cf962 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -185,7 +185,9 @@ public class ArcticaGreeter
{
/* Explicitly set the right scale before closing window */
var screen = Gdk.Screen.get_default ();
- var scale = screen.get_monitor_scale_factor (screen.get_number ());
+ var display = Gdk.Display.get_default();
+ var monitor = display.get_primary_monitor();
+ var scale = monitor.get_scale_factor ();
background_surface.set_device_scale (scale, scale);
/* Paint our background onto the root window before we close our own window */