g-i: mark GtkSnapshot to_(node|paintable) as nullable
authorBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Sun, 23 Jan 2022 22:11:07 +0000 (22:11 +0000)
committerBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Sun, 23 Jan 2022 22:11:07 +0000 (22:11 +0000)
Fixes an upstream issue reported at https://github.com/gtk-rs/gtk4-rs/issues/845

gtk/gtksnapshot.c

index 0c05ecad0e586d4f6d863755291b7be555f30121..cdf61845d52fb722d0cce42102dd92bad5fb0fe5 100644 (file)
@@ -302,7 +302,7 @@ gtk_snapshot_new (void)
  * Returns the node that was constructed by @snapshot
  * and frees @snapshot.
  *
- * Returns: (transfer full): a newly-created [class@Gsk.RenderNode]
+ * Returns: (transfer full) (nullable): a newly-created [class@Gsk.RenderNode]
  */
 GskRenderNode *
 gtk_snapshot_free_to_node (GtkSnapshot *snapshot)
@@ -324,7 +324,7 @@ gtk_snapshot_free_to_node (GtkSnapshot *snapshot)
  * Returns a paintable for the node that was
  * constructed by @snapshot and frees @snapshot.
  *
- * Returns: (transfer full): a newly-created [iface@Gdk.Paintable]
+ * Returns: (transfer full) (nullable): a newly-created [iface@Gdk.Paintable]
  */
 GdkPaintable *
 gtk_snapshot_free_to_paintable (GtkSnapshot           *snapshot,
@@ -1497,7 +1497,7 @@ gtk_snapshot_pop_collect (GtkSnapshot *snapshot)
  * add more nodes to @snapshot. The only function that should
  * be called after this is [method@GObject.Object.unref].
  *
- * Returns: (transfer full): the constructed `GskRenderNode`
+ * Returns: (transfer full) (nullable): the constructed `GskRenderNode`
  */
 GskRenderNode *
 gtk_snapshot_to_node (GtkSnapshot *snapshot)
@@ -1532,7 +1532,7 @@ gtk_snapshot_to_node (GtkSnapshot *snapshot)
  * add more nodes to @snapshot. The only function that should
  * be called after this is [method@GObject.Object.unref].
  *
- * Returns: (transfer full): a new `GdkPaintable`
+ * Returns: (transfer full) (nullable): a new `GdkPaintable`
  */
 GdkPaintable *
 gtk_snapshot_to_paintable (GtkSnapshot           *snapshot,