mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
gdk: change signature of gdk_device_get_history() back to what it used to be
"n_events" went back from guint to gint.
This commit is contained in:
parent
e09e8718f8
commit
a1134e5622
@ -407,7 +407,7 @@ gdk_device_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events)
|
||||
gint *n_events)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_DEVICE (device), FALSE);
|
||||
g_return_val_if_fail (GDK_IS_WINDOW (window), FALSE);
|
||||
@ -431,7 +431,7 @@ gdk_device_get_history (GdkDevice *device,
|
||||
|
||||
GdkTimeCoord **
|
||||
_gdk_device_allocate_history (GdkDevice *device,
|
||||
guint n_events)
|
||||
gint n_events)
|
||||
{
|
||||
GdkTimeCoord **result = g_new (GdkTimeCoord *, n_events);
|
||||
gint i;
|
||||
|
@ -249,7 +249,7 @@ gboolean gdk_device_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events);
|
||||
gint *n_events);
|
||||
void gdk_device_free_history (GdkTimeCoord **events,
|
||||
gint n_events);
|
||||
|
||||
|
@ -40,7 +40,7 @@ struct _GdkDeviceClass
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events);
|
||||
gint *n_events);
|
||||
|
||||
void (* get_state) (GdkDevice *device,
|
||||
GdkWindow *window,
|
||||
@ -121,7 +121,7 @@ gboolean _gdk_device_translate_axis (GdkDevice *device,
|
||||
gdouble *axis_value);
|
||||
|
||||
GdkTimeCoord ** _gdk_device_allocate_history (GdkDevice *device,
|
||||
guint n_events);
|
||||
gint n_events);
|
||||
|
||||
void _gdk_input_check_extension_events (GdkDevice *device);
|
||||
|
||||
|
@ -30,7 +30,7 @@ static gboolean gdk_device_core_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events);
|
||||
gint *n_events);
|
||||
static void gdk_device_core_get_state (GdkDevice *device,
|
||||
GdkWindow *window,
|
||||
gdouble *axes,
|
||||
@ -105,7 +105,7 @@ gdk_device_core_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events)
|
||||
gint *n_events)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ static gboolean gdk_device_win32_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events);
|
||||
gint *n_events);
|
||||
static void gdk_device_win32_get_state (GdkDevice *device,
|
||||
GdkWindow *window,
|
||||
gdouble *axes,
|
||||
@ -107,7 +107,7 @@ gdk_device_win32_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events)
|
||||
gint *n_events)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ static gboolean gdk_device_wintab_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events);
|
||||
gint *n_events);
|
||||
static void gdk_device_wintab_get_state (GdkDevice *device,
|
||||
GdkWindow *window,
|
||||
gdouble *axes,
|
||||
@ -116,7 +116,7 @@ gdk_device_wintab_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events)
|
||||
gint *n_events)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ static gboolean gdk_device_core_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events);
|
||||
gint *n_events);
|
||||
static void gdk_device_core_get_state (GdkDevice *device,
|
||||
GdkWindow *window,
|
||||
gdouble *axes,
|
||||
@ -123,7 +123,7 @@ gdk_device_core_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events)
|
||||
gint *n_events)
|
||||
{
|
||||
GdkWindowObject *priv;
|
||||
XTimeCoord *xcoords;
|
||||
|
@ -54,7 +54,7 @@ static gboolean gdk_device_xi_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events);
|
||||
gint *n_events);
|
||||
|
||||
static void gdk_device_xi_get_state (GdkDevice *device,
|
||||
GdkWindow *window,
|
||||
@ -229,7 +229,7 @@ gdk_device_xi_get_history (GdkDevice *device,
|
||||
guint32 start,
|
||||
guint32 stop,
|
||||
GdkTimeCoord ***events,
|
||||
guint *n_events)
|
||||
gint *n_events)
|
||||
{
|
||||
GdkTimeCoord **coords;
|
||||
XDeviceTimeCoord *device_coords;
|
||||
@ -253,7 +253,7 @@ gdk_device_xi_get_history (GdkDevice *device,
|
||||
if (!device_coords)
|
||||
return FALSE;
|
||||
|
||||
*n_events = (guint) n_events_return;
|
||||
*n_events = n_events_return;
|
||||
coords = _gdk_device_allocate_history (device, *n_events);
|
||||
|
||||
for (i = 0; i < *n_events; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user