Fix a couple incorrect annotations for optional parameters

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.
This commit is contained in:
Cameron White 2023-02-09 22:46:43 -05:00
parent 48e141a42c
commit 0cb3555a65
No known key found for this signature in database
GPG Key ID: 4CF80E80E77C5C35
2 changed files with 6 additions and 6 deletions

View 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.
*

View 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()].
*/