GNOME Bugzilla – Bug 785423
Missing nullable annotation for gtk_bin_get_child
Last modified: 2017-08-03 19:29:18 UTC
Created attachment 356391 [details] [review] Patch fixing the introspection data gtk_bin_get_child can return NULL, but it is not properly annotated as such.
Review of attachment 356391 [details] [review]: Makes perfect sense.
Review of attachment 356391 [details] [review]: ::: gtk/gtkbin.c @@ +200,3 @@ * added, so you do not need to unref it. * + * Returns: (transfer none) (nullable): pointer to child of the #GtkBin As per https://bugzilla.gnome.org/show_bug.cgi?id=781246#c2 this should really have an additional clause, like ", or %NULL if there is no child".
fixed by https://git.gnome.org/browse/gtk+/commit/?h=gtk-3-22&id=9af612d314199d8250c4c3c4dec1628a5a862c45 https://git.gnome.org/browse/gtk+/commit/?id=bae6d3d45ca62b1f6d586f9588bc4f7551060a61