diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-09-09 21:21:12 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-09 21:21:12 +0000 |
commit | e42a88049310ea064129b13ad0b394fd66ce6dc4 (patch) | |
tree | fc48017dd869153e7e506db0296e6e8ffb62d528 /gtk/gtktreeviewcolumn.c | |
parent | 277a6f4701f43cc70bb57bd39ee783f75370442e (diff) | |
download | gtk+-e42a88049310ea064129b13ad0b394fd66ce6dc4.tar.gz |
Make drag reordering work properly for columns other than the first.
2005-09-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
Make drag reordering work properly for columns other than the
first. (#315054, Dan Winship)
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 08d2c28752..c1867a7abb 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -1053,7 +1053,7 @@ gtk_tree_view_column_button_event (GtkWidget *widget, ((GdkEventButton *)event)->button == 1) { column->maybe_reordered = TRUE; - gdk_window_get_pointer (widget->window, + gdk_window_get_pointer (GTK_BUTTON (widget)->event_window, &column->drag_x, &column->drag_y, NULL); @@ -1073,10 +1073,6 @@ gtk_tree_view_column_button_event (GtkWidget *widget, (gint) ((GdkEventMotion *)event)->y))) { column->maybe_reordered = FALSE; - /* this is to change our drag_x to be relative to - * tree_view->priv->bin_window, instead of our window. - */ - column->drag_x -= column->button->allocation.x; _gtk_tree_view_column_start_drag (GTK_TREE_VIEW (column->tree_view), column); return TRUE; } |