Save the initial grab time, use that when changing the pointer. (#83052,

Thu Jun 13 11:36:37 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
        the initial grab time, use that when changing the
        pointer. (#83052, help from Dave Camp tracking it down.)
This commit is contained in:
Owen Taylor 2002-06-13 15:56:20 +00:00 committed by Owen Taylor
parent 325e571a3f
commit ddfd42fbb3
7 changed files with 39 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
the initial grab time, use that when changing the
pointer. (#83052, help from Dave Camp tracking it down.)
Thu Jun 13 16:42:40 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreestore.c (gtk_tree_store_finalize): traverse all nodes,

View File

@ -1,3 +1,9 @@
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
the initial grab time, use that when changing the
pointer. (#83052, help from Dave Camp tracking it down.)
Thu Jun 13 16:42:40 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreestore.c (gtk_tree_store_finalize): traverse all nodes,

View File

@ -1,3 +1,9 @@
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
the initial grab time, use that when changing the
pointer. (#83052, help from Dave Camp tracking it down.)
Thu Jun 13 16:42:40 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreestore.c (gtk_tree_store_finalize): traverse all nodes,

View File

@ -1,3 +1,9 @@
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
the initial grab time, use that when changing the
pointer. (#83052, help from Dave Camp tracking it down.)
Thu Jun 13 16:42:40 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreestore.c (gtk_tree_store_finalize): traverse all nodes,

View File

@ -1,3 +1,9 @@
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
the initial grab time, use that when changing the
pointer. (#83052, help from Dave Camp tracking it down.)
Thu Jun 13 16:42:40 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreestore.c (gtk_tree_store_finalize): traverse all nodes,

View File

@ -1,3 +1,9 @@
Thu Jun 13 11:36:37 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (_gtk_drag_source_handle_event): Save
the initial grab time, use that when changing the
pointer. (#83052, help from Dave Camp tracking it down.)
Thu Jun 13 16:42:40 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreestore.c (gtk_tree_store_finalize): traverse all nodes,

View File

@ -94,6 +94,7 @@ struct _GtkDragSourceInfo
gint start_x, start_y; /* Initial position */
gint cur_x, cur_y; /* Current Position */
guint32 grab_time; /* timestamp for initial grab */
GList *selections; /* selections we've claimed */
GtkDragDestInfo *proxy_dest; /* Set if this is a proxy drag */
@ -1903,6 +1904,7 @@ gtk_drag_begin (GtkWidget *widget,
}
info->have_grab = TRUE;
info->grab_time = time;
return info->context;
}
@ -2474,7 +2476,7 @@ _gtk_drag_source_handle_event (GtkWidget *widget,
GDK_POINTER_MOTION_HINT_MASK |
GDK_BUTTON_RELEASE_MASK,
NULL,
cursor, event->dnd.time);
cursor, info->grab_time);
info->cursor = cursor;
}