GNOME Bugzilla – Bug 526575
Missing return type in gtk_ui_manager_get_toplevels documentation
Last modified: 2008-08-02 04:46:41 UTC
Documentation Section: The GTKUIManager section of the GTK+ Reference Manual Returns : a newly-allocated of all toplevel widgets of the requested types. Correct version: Returns : a newly-allocated GSList of all toplevel widgets of the requested types. Other information:
Created attachment 108735 [details] [review] Patch
Quick fix. http://live.gnome.org/GtkLove/PatchTriaging spam.
Looks fine to me, although it would be better to give an additional explict hint on how to free the return value. Like: "Free the returned list with g_slist_free()."
Created attachment 115532 [details] [review] Updated patch that also says to use g_slist_free to free the result The attached patch adds the sentence suggested by Matthias Clasen.
2008-08-02 Matthias Clasen <mclasen@redhat.com> Bug 526575 – Missing return type in gtk_ui_manager_get_toplevels documentation * gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Improve the docs.