introspection: Remove 'caller-allocates' from POD types
authorPhilip Chimento <philip.chimento@gmail.com>
Wed, 16 Aug 2023 05:30:27 +0000 (22:30 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 24 Aug 2023 14:22:56 +0000 (10:22 -0400)
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

gtk/gtklistbase.c
gtk/gtksectionmodel.c

index 2cdac1461cf63c40aa512c26382b9b51710f7004..10372c5754b5f003dead3eef43c3930d00cceede 100644 (file)
@@ -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);
 
index e3684fc4ea08fedb984ad0dad2c96828467b84f1..b645d1ca368bbf7e49f1f999fdde17a5c47367c9 100644 (file)
@@ -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`.