This is an automated email from the git hooks/post-receive script. gottcode pushed a commit to branch master in repository panel-plugins/xfce4-whiskermenu-plugin.
commit 85b7c58f9382421dd4d1b2e24b10156168a9be35 Author: Graeme Gott <gra...@gottcode.org> Date: Tue Oct 25 08:26:19 2016 -0400 Replace deprecated code. --- panel-plugin/window.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panel-plugin/window.cpp b/panel-plugin/window.cpp index 8224722..d7f8bb1 100644 --- a/panel-plugin/window.cpp +++ b/panel-plugin/window.cpp @@ -413,8 +413,13 @@ void WhiskerMenu::Window::show(GtkWidget* parent, bool horizontal) // Fetch screen geomtry GdkRectangle monitor; +#if GTK_CHECK_VERSION(3,22,0) + GdkMonitor* monitor_gdk = gdk_display_get_monitor_at_point(gdk_display_get_default(), parent_x, parent_y); + gdk_monitor_get_geometry(monitor_gdk, &monitor); +#else int monitor_num = gdk_screen_get_monitor_at_point(screen, parent_x, parent_y); gdk_screen_get_monitor_geometry(screen, monitor_num, &monitor); +#endif // Prevent window from being larger than screen if (m_geometry.width > monitor.width) -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits