From: Philip Chimento Date: Wed, 16 Aug 2023 05:30:27 +0000 (-0700) Subject: introspection: Remove 'caller-allocates' from POD types X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=294bc262cddcc5003c664afd6f6e4659505aea41;p=gtk4.git 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 --- diff --git a/gtk/gtklistbase.c b/gtk/gtklistbase.c index 2cdac1461c..10372c5754 100644 --- a/gtk/gtklistbase.c +++ b/gtk/gtklistbase.c @@ -121,7 +121,7 @@ static GParamSpec *properties[N_PROPS] = { NULL, }; * @self: a `GtkListBase` * @across: position in pixels in the direction cross to 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 * by the returned position * @@ -1519,7 +1519,7 @@ gtk_list_base_allocate_children (GtkListBase *self, GtkListBasePrivate *priv = gtk_list_base_get_instance_private (self); GtkListTile *tile; int dx, dy; - + 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); diff --git a/gtk/gtksectionmodel.c b/gtk/gtksectionmodel.c index e3684fc4ea..b645d1ca36 100644 --- a/gtk/gtksectionmodel.c +++ b/gtk/gtksectionmodel.c @@ -113,10 +113,9 @@ gtk_section_model_default_init (GtkSectionModelInterface *iface) * gtk_section_model_get_section: * @self: a `GtkSectionModel` * @position: the position of the item to query - * @out_start: (out caller-allocates): the position of the first - * item in the section - * @out_end: (out caller-allocates): the position of the first - * item not part of the section anymore. + * @out_start: (out): the position of the first item in the section + * @out_end: (out): the position of the first item not part of the section + * anymore. * * Query the section that covers the given position. The number of * items in the section can be computed by `out_end - out_start`.