[gtk+] treeview: Remove call to gtk_widget_get_pointer()



commit a1fb2c863b44cf3aa00b5fd49982c0f4d46b98f1
Author: Benjamin Otte <otte redhat com>
Date:   Tue Nov 8 16:50:07 2011 +0100

    treeview: Remove call to gtk_widget_get_pointer()

 gtk/gtktreeview.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 34d22ed..d673913 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -3946,7 +3946,9 @@ gtk_tree_view_motion_resize_column (GtkWidget      *widget,
   column = gtk_tree_view_get_column (tree_view, tree_view->priv->drag_pos);
 
   if (event->is_hint || event->window != gtk_widget_get_window (widget))
-    gtk_widget_get_pointer (widget, &x, NULL);
+    gdk_window_get_device_position (gtk_widget_get_window (widget),
+                                    gdk_event_get_device ((GdkEvent *) event),
+                                    &x, NULL, NULL);
   else
     x = event->x;
 



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