[gnome-builder] ide-tree: remove deprecated GdkScreen API
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] ide-tree: remove deprecated GdkScreen API
- Date: Thu, 27 Oct 2016 17:16:53 +0000 (UTC)
commit 9b9afa1703cb6a12a3bc8595b7625f7bb2102957
Author: Sebastien Lafargue <slafargue gnome org>
Date: Thu Oct 27 19:15:35 2016 +0200
ide-tree: remove deprecated GdkScreen API
libide/tree/ide-tree.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/libide/tree/ide-tree.c b/libide/tree/ide-tree.c
index 47354c2..3b7ffc1 100644
--- a/libide/tree/ide-tree.c
+++ b/libide/tree/ide-tree.c
@@ -213,15 +213,13 @@ ide_tree_menu_position_func (GtkMenu *menu,
GdkPoint *loc = user_data;
GtkRequisition req;
GdkRectangle rect;
- GdkScreen *screen;
- gint monitor;
+ GdkMonitor *monitor;
g_return_if_fail (loc != NULL);
gtk_widget_get_preferred_size (GTK_WIDGET (menu), NULL, &req);
- screen = gtk_widget_get_screen (GTK_WIDGET (menu));
- monitor = gdk_screen_get_monitor_at_point (screen, *x, *y);
- gdk_screen_get_monitor_geometry (screen, monitor, &rect);
+ monitor = gdk_display_get_monitor_at_point (gdk_display_get_default (), *x, *y);
+ gdk_monitor_get_geometry (monitor, &rect);
if ((loc->x != -1) && (loc->y != -1))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]