[gtkmm] deleting last childrow of a row



Hi,

i want the erase the last childrow of a row, but when i initilize the
iterator with iter = row.children().end() something goes wrong. I've
checked the iterator with iter_depth( iter ) and it returns a 0 ! While
it should return a 1 since it should point to a childrow.

row.children().begin() works fine and  iter_depth( iter ) returns a 1,
which is perfecly fine.

Of course i can solve this with incrementing the iterator until it hits
the size of the childs, but i like to do it in a "one step way". By just
using row.children().end() of something similar.

Is this a bug? or am i doing something wrong?

Bart




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]