Skip to content

Commit

Permalink
g-i: mark GtkSnapshot to_(node|paintable) as nullable
Browse files Browse the repository at this point in the history
Fixes an upstream issue reported at gtk-rs/gtk4-rs#845
  • Loading branch information
bilelmoussaoui committed Jan 23, 2022
1 parent 7b02498 commit b362eee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gtk/gtksnapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b362eee

Please sign in to comment.