From: Guillaume Desmottes Date: Thu, 10 Nov 2011 09:23:08 +0000 (+0100) Subject: stop using gdk_window_get_pointer() X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=19fe264f32b68246b21b0db8eb2694a159b833f2 stop using gdk_window_get_pointer() It has been deprecated. gdk_window_get_device_position() has been added in GTK+ 3.0 so we're fine. https://bugzilla.gnome.org/show_bug.cgi?id=662903 --- diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c index 24899942..f52ad28d 100644 --- a/libempathy-gtk/empathy-chat-text-view.c +++ b/libempathy-gtk/empathy-chat-text-view.c @@ -151,7 +151,7 @@ chat_text_view_event_cb (EmpathyChatTextView *view, return FALSE; } - gdk_window_get_pointer (win, &x, &y, NULL); + gdk_window_get_device_position (win, event->device, &x, &y, NULL); /* Get the iter where the cursor is at */ gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (view), type,