From 9e2092d3063744dde05827b5d42442bb82c00796 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 7 Jul 2015 12:50:14 +0200 Subject: [PATCH] gtkdnd: Fix introspection annotations in some functions The GdkEvent field is nullable on gtk_drag_begin*, and gtk_drag_cancel() is a method, like the rest of the DnD API. --- gtk/gtkdnd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 399e319e58..2978568b47 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -2582,7 +2582,8 @@ gtk_drag_begin_internal (GtkWidget *widget, * source can provide the data * @actions: A bitmask of the allowed drag actions for this drag * @button: The button the user clicked to start the drag - * @event: The event that triggered the start of the drag + * @event: (nullable): The event that triggered the start of the drag, + * or %NULL if none can be obtained. * @x: The initial x coordinate to start dragging from, in the coordinate space * of @widget. If -1 is passed, the coordinates are retrieved from @event or * the current pointer position @@ -2644,7 +2645,8 @@ gtk_drag_begin_with_coordinates (GtkWidget *widget, * source can provide the data * @actions: A bitmask of the allowed drag actions for this drag * @button: The button the user clicked to start the drag - * @event: The event that triggered the start of the drag + * @event: (nullable): The event that triggered the start of the drag, + * or %NULL if none can be obtained. * * This function is equivalent to gtk_drag_begin_with_coordinates(), * passing -1, -1 as coordinates. @@ -4386,7 +4388,7 @@ gtk_drag_check_threshold (GtkWidget *widget, } /** - * gtk_drag_cancel: + * gtk_drag_cancel: (method) * @context: a #GdkDragContext, as e.g. returned by gtk_drag_begin_with_coordinates() * * Cancels an ongoing drag operation on the source side. -- 2.30.2