After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 601383 - gtk_icon_view_get_selected_items: example code gives compiler warnings + fix
gtk_icon_view_get_selected_items: example code gives compiler warnings + fix
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Documentation
2.19.x
Other All
: Normal trivial
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-11-10 11:02 UTC by Dirk-Jan C. Binnema
Modified: 2009-12-08 04:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix the documentation of GtkIconEntry (398 bytes, patch)
2009-11-13 13:32 UTC, Christian Dywan
committed Details | Review

Description Dirk-Jan C. Binnema 2009-11-10 11:02:24 UTC
The entry for gtk_icon_view_get_selected_items states that:

"To free the return value, use:

  g_list_foreach (list, gtk_tree_path_free, NULL);
  g_list_free (list);"

This will give compiler warnings due to the gtk_tree_path_free. Fix is trivial of course:

  g_list_foreach (list, (GFunc)gtk_tree_path_free, NULL);
  g_list_free (list);
Comment 1 Christian Dywan 2009-11-13 13:32:39 UTC
Created attachment 147659 [details] [review]
fix the documentation of GtkIconEntry
Comment 2 Matthias Clasen 2009-11-28 07:23:09 UTC
Comment on attachment 147659 [details] [review]
fix the documentation of GtkIconEntry

Please commit.
Comment 3 Javier Jardón (IRC: jjardon) 2009-12-08 04:48:54 UTC
Comment on attachment 147659 [details] [review]
fix the documentation of GtkIconEntry

commit ae057dcd12c0729c1920c7761f76638142a85ce6
Comment 4 Javier Jardón (IRC: jjardon) 2009-12-08 04:49:12 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.