[gtk/ebassi/for-master: 1/2] Annotate gdk_motion_event_get_history() correctly



commit ddd113ac984db56c3297ff80dfd3f259594ac038
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed May 6 19:28:33 2020 +0100

    Annotate gdk_motion_event_get_history() correctly
    
    We moved from returning a list to returning a C array, and this requires
    a change in the annotations.

 gdk/gdkevents.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index f1cae55a4f..d514e64b04 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -2827,8 +2827,8 @@ gdk_motion_event_new (GdkSurface      *surface,
  * Retrieves the history of the @event motion, as a list of time and
  * coordinates.
  *
- * Returns: (transfer container) (element-type GdkTimeCoord) (nullable): a list
- *   of time and coordinates
+ * Returns: (transfer container) (array length=out_n_coords) (nullable): an
+ *   array of time and coordinates
  */
 GdkTimeCoord *
 gdk_motion_event_get_history (GdkEvent *event,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]