TreePath has no constructor from TreeModel::const_iterator
gtkmm 4 increases const-correctness of various proxy classes used to wrap GtkTreeModel
and friends. Which is really good! But I think it's missing a bit...
TreePath
only has a constructor from a TreeModel::iterator
(and other, currently irrelevant types) - so it cannot be constructed from a TreeModel::const_iterator
, such as the one we get to the cell_data_func
slot.
In Inkscape we have code that wants to get the Path from such a now-const_iterator
, to then get its IconView.get_cell_rect(path, etc)
- but when trying to build against gtkmm 4, we simply cannot due to this. And I can't see a way around it.
We have some other questionable code in this area, so probably the whole thing should be rewritten to use Gtk::GridView
instead... but shouldn't a Path
be constructible from a const_iterator
?
If so, I'll be happy to work on an MR to make that possible.
Thanks!