aboutsummaryrefslogtreecommitdiff
path: root/src/menubar.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/menubar.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/menubar.vala')
-rw-r--r--src/menubar.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/menubar.vala b/src/menubar.vala
index 9735a38..edc6563 100644
--- a/src/menubar.vala
+++ b/src/menubar.vala
@@ -418,10 +418,10 @@ public class MenuBar : Gtk.MenuBar
keyboard_socket.add_id (id);
/* Put keyboard at the bottom of the screen */
- var screen = get_screen ();
- var monitor = screen.get_monitor_at_window (get_window ());
+ var display = get_display ();
+ var monitor = display.get_monitor_at_window (get_window ());
Gdk.Rectangle geom;
- screen.get_monitor_geometry (monitor, out geom);
+ geom = monitor.get_geometry ();
keyboard_window.move (geom.x, geom.y + geom.height - 200);
keyboard_window.resize (geom.width, 200);
}