]> git.0d.be Git - empathy.git/commitdiff
stop using gdk_window_get_pointer()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 10 Nov 2011 09:23:08 +0000 (10:23 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 11 Nov 2011 08:29:44 +0000 (09:29 +0100)
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

index 24899942712c5b6ffd3879ca023068daf83d3605..f52ad28d5a6f073781b14b2f5410e20fe7db7d9a 100644 (file)
@@ -151,7 +151,7 @@ chat_text_view_event_cb (EmpathyChatTextView *view,
                return FALSE;
        }
 
                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,
 
        /* Get the iter where the cursor is at */
        gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (view), type,