In gtk.TreeModelIF line 263: TreeIter must be initialized.
aferust opened this issue · 0 comments
aferust commented
In docs, it says:
* Sets iter to a valid iterator pointing to path.
* Params:
* iter = The uninitialized GtkTreeIter.
* path = The GtkTreePath.
* Returns:
* TRUE, if iter was set.
*/
public int getIter(TreeIter iter, TreePath path);
However, this does not work:
TreeIter itr;
listStore.getIter(itr, treePath);
TreeIter must be initialized for it to work, contrary to docs' saying. So, this works:
TreeIter itr = new TreeIter;
listStore.getIter(itr, treePath);