[gedit] Use gdk_device_get_position and bump gtk+ to 2.91.8



commit c48ab831c97ed732537206e27c142378056fed7a
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Dec 28 22:04:32 2010 +0100

    Use gdk_device_get_position and bump gtk+ to 2.91.8

 configure.ac         |    2 +-
 gedit/gedit-window.c |    6 +-----
 2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1afc385..f35284e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -268,7 +268,7 @@ PKG_CHECK_MODULES(GEDIT, [
 	glib-2.0 >= 2.25.15
 	gthread-2.0 >= 2.13.0
 	gio-2.0 >= 2.25.11
-	gtk+-3.0 >= 2.91.3
+	gtk+-3.0 >= 2.91.8
 	gtksourceview-3.0 >= 2.91.1
 	libpeas-1.0 >= 0.7.0
 	libpeas-gtk-1.0 >= 0.7.0
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 95490e0..0dcc99c 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -3191,18 +3191,14 @@ on_fullscreen_controls_leave_notify_event (GtkWidget        *widget,
 					   GdkEventCrossing *event,
 					   GeditWindow      *window)
 {
-	GdkDisplay *display;
-	GdkScreen *screen;
 	GdkDevice *device;
 	gint w, h;
 	gint x, y;
 
-	display = gdk_display_get_default ();
-	screen = gtk_window_get_screen (GTK_WINDOW (window));
 	device = gdk_event_get_device ((GdkEvent *)event);
 
 	gtk_window_get_size (GTK_WINDOW (window->priv->fullscreen_controls), &w, &h);
-	gdk_display_get_device_state (display, device, &screen, &x, &y, NULL);
+	gdk_device_get_position (device, NULL, &x, &y);
 
 	/* gtk seems to emit leave notify when clicking on tool items,
 	 * work around it by checking the coordinates



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]