conformal / gotk3

Go bindings for GTK3
ISC License
470 stars 81 forks source link

[Question] How do you insert data into a gtk.ListStore? #102

Closed shackra closed 9 years ago

shackra commented 9 years ago

I was wondering this as the gtk.ListStore.Append method expression do not receive parameters.

jrick commented 9 years ago

You need to call (*gtk.ListStore).Set(treeIter, ...) (doco here) with the treeIter returned by Append. It's a little wonky but matches the C API.

shackra commented 9 years ago

I see... How do I set the data in that gtk.TreeIter struct?

shackra commented 9 years ago

Ohh... I see. Thanks for the clarification!