summaryrefslogtreecommitdiff
path: root/gtk/gtkdnd.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2002-01-07 07:59:08 +0000
committerTim Janik <timj@src.gnome.org>2002-01-07 07:59:08 +0000
commit1901d4ebd7572fc9e5243345e0436d18e4e52dd1 (patch)
treecf4998ba738bba2f7db113d5f6f4c5eb781761a3 /gtk/gtkdnd.c
parented29c8ddd8ad7a5d01c2e75d69496c1388364490 (diff)
downloadgtk+-1901d4ebd7572fc9e5243345e0436d18e4e52dd1.tar.gz
don't forget to offset the pointer by x/y_offset into the new window when
Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org> * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset the pointer by x/y_offset into the new window when we found the drag destination. * gtk/gtkaccelmap.c (internal_change_entry): fix return code for simulation when the entry already contains the required accel key and mod.
Diffstat (limited to 'gtk/gtkdnd.c')
-rw-r--r--gtk/gtkdnd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 44b7e821aa..3e88358800 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -1266,7 +1266,7 @@ gtk_drag_find_widget (GtkWidget *widget,
new_allocation.x -= tx;
new_allocation.y -= ty;
}
-
+
while (window && window != widget->parent->window)
{
gdk_window_get_size (window, &twidth, &theight);
@@ -1342,8 +1342,8 @@ gtk_drag_find_widget (GtkWidget *widget,
{
data->found = data->callback (widget,
data->context,
- data->x - new_allocation.x,
- data->y - new_allocation.y,
+ data->x - new_allocation.x - x_offset,
+ data->y - new_allocation.y - y_offset,
data->time);
/* If so, send a "drag_leave" to the last widget */
if (data->found)