diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-06-11 14:37:18 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-06-11 17:36:03 +0200 |
commit | b8886436b32fd2bc55dd46067770dc0c43f3b437 (patch) | |
tree | e2c91f102b45024eb38f55253d577de689c7bdfe /gtk/gtktreeviewcolumn.c | |
parent | 20a59985fe365a703fdf270e15608b5debda20e2 (diff) | |
download | gtk+-b8886436b32fd2bc55dd46067770dc0c43f3b437.tar.gz |
treeviewcolumn: Avoid a device position query
This happens in an event handler, and the button event should be
expected to have the right coordinates on the event window already.
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 2c294ecce1..df833c0f36 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -1095,11 +1095,8 @@ gtk_tree_view_column_button_event (GtkWidget *widget, ((GdkEventButton *)event)->button == GDK_BUTTON_PRIMARY) { priv->maybe_reordered = TRUE; - gdk_window_get_device_position (gtk_button_get_event_window (GTK_BUTTON (widget)), - gdk_event_get_device (event), - &priv->drag_x, - &priv->drag_y, - NULL); + priv->drag_x = event->button.x; + priv->drag_y = event->button.y; gtk_widget_grab_focus (widget); } |