GNOME Bugzilla – Bug 626384
Re-introduce iterable models and indexable rows
Last modified: 2010-10-09 15:21:44 UTC
The ability to iterate through GtkTreeModel should be ported to GI as override. And so should indexable GtkTreeRowReference to again allow for easy access via row[row][column]. BTW: For custom models GtkTreeModel should be derived from, as there is nothing equivalent to gtk.GenericTreeModel in GI?
That I can't just do stuff like for row in liststore: row[0] = "foo" is actually not only an inconvenience for me, but has rather deep impact. I am using Python'esque duck-typing, so most parts of my code (and possibly plugins) don't even know that a particular object is e.g. a GtkListStore - they just expect to be able to treat it like above. Functions might sometimes get a ListStore, sometimes just a list of lists - they don't (and shouldn't have to) care.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 631547 ***