GNOME Bugzilla – Bug 634423
Gtk.ListStore.insert() override request
Last modified: 2010-11-10 01:04:30 UTC
The insert() method of a GtkListStore used to have an override in PyGTK that made it work like Python lists, that is, insert a new element right away instead of creating a new empty row that needs to be filled in a second step. So, for example, list_store = Gtk.ListStore(str, str) list_store.insert(0, ('foo', 'bar') would insert the a row containing foo and bar at the beginning of the list.
Created attachment 174145 [details] [review] add overrides for the insert* apis of list_store and tree_store * add set_row to tree_model as convinience method for both list and tree stores