diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-05-17 16:04:18 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-05-17 16:04:18 +0200 |
commit | 8dd317d9572ce879b62bb311863b7c08a2547fe7 (patch) | |
tree | c89152b8d3ee07ba76676729aac43919a2032ae4 /src/menubar.vala | |
parent | c9f0793b67d2eea7f95f83211e4a9d729fbcc024 (diff) | |
download | arctica-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.vala | 6 |
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); } |