GNOME Bugzilla – Bug 548793
funny pattern for iterating GtkTreeModel
Last modified: 2012-11-22 21:39:13 UTC
The docs for GtkTreeModel suggest iterating through the model using a while() loop, which makes the use of 'continue;' more error prone. Perhaps the documentation should be updated with this pattern: gboolean valid; for (valid = gtk_tree_model_get_iter_first (model, &iter); valid; valid = gtk_tree_model_iter_next (model, &iter)) { ... }
Created attachment 229649 [details] [review] improve GtkTreeModel iteration pattern in documentation
Review of attachment 229649 [details] [review]: looks ok
Comment on attachment 229649 [details] [review] improve GtkTreeModel iteration pattern in documentation Thanks, pushed to master and gtk-3-6 as commits c627b221264ff93f5bb4e172fb875a57ec7e5959 and 1bad36ae1db1006b4f2f06f3fb3828efc0130a45.