introspection: Remove 'caller-allocates' from POD types

The (out caller-allocates) and (out callee-allocates) annotations are
meant for structured or pointer types. Plain old data types are just
regular out parameters and don't need the annotation about who allocates
them.

See glib!2005, gjs#570
This commit is contained in:
Philip Chimento 2023-08-15 22:30:27 -07:00
parent cc93347fe6
commit 823cb714ec
3 changed files with 6 additions and 8 deletions

View File

@ -428,8 +428,7 @@ gsk_stroke_set_dash (GskStroke *self,
/** /**
* gsk_stroke_get_dash: * gsk_stroke_get_dash:
* @self: a `GskStroke` * @self: a `GskStroke`
* @n_dash: (out caller-allocates): number of elements * @n_dash: (out): number of elements in the array returned
* in the array returned
* *
* Gets the dash array in use or `NULL` if dashing is disabled. * Gets the dash array in use or `NULL` if dashing is disabled.
* *

View File

@ -121,7 +121,7 @@ static GParamSpec *properties[N_PROPS] = { NULL, };
* @self: a `GtkListBase` * @self: a `GtkListBase`
* @across: position in pixels in the direction cross to the list * @across: position in pixels in the direction cross to the list
* @along: position in pixels in the direction of the list * @along: position in pixels in the direction of the list
* @pos: (out caller-allocates): set to the looked up position * @pos: (out): set to the looked up position
* @area: (out caller-allocates) (optional): set to the area occupied * @area: (out caller-allocates) (optional): set to the area occupied
* by the returned position * by the returned position
* *
@ -1519,7 +1519,7 @@ gtk_list_base_allocate_children (GtkListBase *self,
GtkListBasePrivate *priv = gtk_list_base_get_instance_private (self); GtkListBasePrivate *priv = gtk_list_base_get_instance_private (self);
GtkListTile *tile; GtkListTile *tile;
int dx, dy; int dx, dy;
gtk_list_base_get_adjustment_values (self, OPPOSITE_ORIENTATION (priv->orientation), &dx, NULL, NULL); gtk_list_base_get_adjustment_values (self, OPPOSITE_ORIENTATION (priv->orientation), &dx, NULL, NULL);
gtk_list_base_get_adjustment_values (self, priv->orientation, &dy, NULL, NULL); gtk_list_base_get_adjustment_values (self, priv->orientation, &dy, NULL, NULL);

View File

@ -113,10 +113,9 @@ gtk_section_model_default_init (GtkSectionModelInterface *iface)
* gtk_section_model_get_section: * gtk_section_model_get_section:
* @self: a `GtkSectionModel` * @self: a `GtkSectionModel`
* @position: the position of the item to query * @position: the position of the item to query
* @out_start: (out caller-allocates): the position of the first * @out_start: (out): the position of the first item in the section
* item in the section * @out_end: (out): the position of the first item not part of the section
* @out_end: (out caller-allocates): the position of the first * anymore.
* item not part of the section anymore.
* *
* Query the section that covers the given position. The number of * Query the section that covers the given position. The number of
* items in the section can be computed by `out_end - out_start`. * items in the section can be computed by `out_end - out_start`.