Re: New list/tree model questions



Owen Taylor <otaylor redhat com> writes:

As a side note, my current favorite idiom for iterating over
all rows in a model is:

  gboolean valid;

  for (valid = gtk_tree_model_get_iter_first (model, &iter);
       valid;
       valid = gtk_tree_model_iter_next (model, &iter))
    {
      [ Do something with &iter ]
    }

Nice.  I just updated the FAQ and examples with this information.
Hopefully we can cut down on this problem in the future.

Thanks,
-Jonathan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]