[empathy] stop using gdk_window_get_pointer()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] stop using gdk_window_get_pointer()
- Date: Fri, 11 Nov 2011 08:30:02 +0000 (UTC)
commit 19fe264f32b68246b21b0db8eb2694a159b833f2
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Nov 10 10:23:08 2011 +0100
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
libempathy-gtk/empathy-chat-text-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c
index 2489994..f52ad28 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]