GNOME Bugzilla – Bug 502266
[docs] [GtkTreeSelection] gtk_tree_selection_get_selected_rows free example produces warnings
Last modified: 2009-12-19 01:10:55 UTC
It reads: "Creates a list of path of all selected rows. Additionally, if you are planning on modifying the model after calling this function, you may want to convert the returned list into a list of GtkTreeRowReferences. To do this, you can use gtk_tree_row_reference_new(). To free the return value, use: g_list_foreach (list, gtk_tree_path_free, NULL); g_list_free (list);" that gtk_tree_path_free produces a warning while building if it's not casted to GFunc. To fix the warning and the docs, just add (GFunc) in front: g_list_foreach (list, (GFunc) gtk_tree_path_free, NULL);
Created attachment 149966 [details] [review] Cast to GFunc
Looks good to me.
Review of attachment 149966 [details] [review]: Looks good (trying to use the review system).
Comment on attachment 149966 [details] [review] Cast to GFunc commit 7e114752988f4bf62034aa91dec496f980389f95
This problem has been fixed in the development version. The fix will be available in the next major software release. Thanks Diego for your bug report.