Daily Archives: May 14, 2005

IEnumerable for Gtk.ListStore

I noticed that my patch that makes Gtk.ListStore implement IEnumerable was commited to Gtk# SVN head (thanks!!) so I figured i’d just mention why it’s useful and how to use it.
Preveously if you wanted to traverse all the rows in a ListStore (used for TreeView, ComboBox, etc.) you would have to do something like:

Gtk.TreeIter iter;
trustedNodesListStore.GetIterFirst(out [...]