Fix a couple incorrect annotations for optional parameters
authorCameron White <cameronwhite91@gmail.com>
Fri, 10 Feb 2023 03:46:43 +0000 (22:46 -0500)
committerCameron White <cameronwhite91@gmail.com>
Fri, 10 Feb 2023 03:46:43 +0000 (22:46 -0500)
The 'optional' annotation should be used in these cases rather than 'nullable'.
NULL can provided to ignore these output parameters, but the function is
not setting the output parameter to NULL.

gtk/gtkgesturedrag.c
gtk/gtkpopover.c

index 9f4d502c53f057806fb91426c58c17cfbbb14c12..a05892a840954b31c8113bc5deb8c0e2e32e396b 100644 (file)
@@ -223,8 +223,8 @@ gtk_gesture_drag_new (void)
 /**
  * gtk_gesture_drag_get_start_point:
  * @gesture: a `GtkGesture`
- * @x: (out) (nullable): X coordinate for the drag start point
- * @y: (out) (nullable): Y coordinate for the drag start point
+ * @x: (out) (optional): X coordinate for the drag start point
+ * @y: (out) (optional): Y coordinate for the drag start point
  *
  * Gets the point where the drag started.
  *
@@ -263,8 +263,8 @@ gtk_gesture_drag_get_start_point (GtkGestureDrag *gesture,
 /**
  * gtk_gesture_drag_get_offset:
  * @gesture: a `GtkGesture`
- * @x: (out) (nullable): X offset for the current point
- * @y: (out) (nullable): Y offset for the current point
+ * @x: (out) (optional): X offset for the current point
+ * @y: (out) (optional): Y offset for the current point
  *
  * Gets the offset from the start point.
  *
index 7ff8cc95a2d530c91c9e06411364945f3cdc8b58..78dc4034c26eb743a17fcd27e834898223c48ac1 100644 (file)
@@ -2484,8 +2484,8 @@ gtk_popover_set_offset (GtkPopover *popover,
 /**
  * gtk_popover_get_offset:
  * @popover: a `GtkPopover`
- * @x_offset: (out) (nullable): a location for the x_offset
- * @y_offset: (out) (nullable): a location for the y_offset
+ * @x_offset: (out) (optional): a location for the x_offset
+ * @y_offset: (out) (optional): a location for the y_offset
  *
  * Gets the offset previous set with [method@Gtk.Popover.set_offset()].
  */