mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
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:
parent
48e141a42c
commit
0cb3555a65
@ -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.
|
||||
*
|
||||
|
@ -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()].
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user