GNOME Bugzilla – Bug 523950
GtkTreeModelFilter's visible function may get an empty row
Last modified: 2008-08-02 04:42:56 UTC
This one tripped me over so I think it should have an entry in the manual. :) The callback function assigned with gtk_tree_model_filter_set_visible_func() is called on the row-inserted signal when the row is empty. So the docstring should mention that it is important to deal with rows with no data, otherwise bad things may happen.
Created attachment 107853 [details] [review] Explain and show how iterators pointing to empty rows should be handled in the visible function
Quick fix. Minor nitpick: whoever commits, please replace // for /* */ :) http://live.gnome.org/GtkLove/PatchTriaging spam.
Yeah, with the fix pointed out by Diego, it is fine to commit. Hint: use /* */ for doing this inside a doc comment.
2008-08-02 Matthias Clasen <mclasen@redhat.com> Bug 523950 – GtkTreeModelFilter's visible function may get an empty row * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_visible_func): Explain and show how iterators pointing to empty rows should be handled in the visible function. Patch by Björn Lindqvist