mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
don't forget to set the time in the returned GdkTimeCoords.
2008-01-04 Michael Natterer <mitch@imendio.com> * gdk/x11/gdkinput-x11.c (_gdk_device_get_history): don't forget to set the time in the returned GdkTimeCoords. svn path=/trunk/; revision=19304
This commit is contained in:
parent
6f1d571c04
commit
3db2d18042
@ -1,3 +1,8 @@
|
||||
2008-01-04 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gdk/x11/gdkinput-x11.c (_gdk_device_get_history): don't forget
|
||||
to set the time in the returned GdkTimeCoords.
|
||||
|
||||
2008-01-03 Emmanuele Bassi <ebassi@gnome.org>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (recent_sort_mru): Use the
|
||||
|
@ -754,11 +754,16 @@ _gdk_device_get_history (GdkDevice *device,
|
||||
if (device_coords)
|
||||
{
|
||||
coords = _gdk_device_allocate_history (device, *n_events);
|
||||
|
||||
for (i=0; i<*n_events; i++)
|
||||
gdk_input_translate_coordinates (gdkdev, input_window,
|
||||
device_coords[i].data,
|
||||
coords[i]->axes, NULL, NULL);
|
||||
|
||||
for (i = 0; i < *n_events; i++)
|
||||
{
|
||||
coords[i]->time = device_coords[i].time;
|
||||
|
||||
gdk_input_translate_coordinates (gdkdev, input_window,
|
||||
device_coords[i].data,
|
||||
coords[i]->axes, NULL, NULL);
|
||||
}
|
||||
|
||||
XFreeDeviceMotionEvents (device_coords);
|
||||
|
||||
*events = coords;
|
||||
|
Loading…
Reference in New Issue
Block a user