[gtk+] widget: Don't use deprecated symbols
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Don't use deprecated symbols
- Date: Tue, 8 Nov 2011 20:23:46 +0000 (UTC)
commit fd93e08a7c6eead43162c59dcc552d1253ca04ea
Author: Benjamin Otte <otte redhat com>
Date: Tue Nov 8 17:19:11 2011 +0100
widget: Don't use deprecated symbols
Not even in deprecated functions!
gtk/gtkwidget.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index e3e3f45..c624af6 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -9776,7 +9776,11 @@ gtk_widget_get_pointer (GtkWidget *widget,
if (gtk_widget_get_realized (widget))
{
- gdk_window_get_pointer (priv->window, x, y, NULL);
+ gdk_window_get_device_position (priv->window,
+ gdk_device_manager_get_client_pointer (
+ gdk_display_get_device_manager (
+ gtk_widget_get_display (widget))),
+ x, y, NULL);
if (!gtk_widget_get_has_window (widget))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]