Re: GtkTreePath's gtk_tree_path_up() method returns true when called with "0" level path



On Sun, 4 Sep 2016 13:23:14 +0530
Samik Ganguly <sganguly87 gmail com> wrote:

(...)
Now, if the path "0" refers to root node, how can it have a parent to 
move to? After calling this method on path, the path isn't valid
anymore and fails to be converted into iterator(critical warning is
thrown). Is this behavior correct for gtk_tree_path_up() ?

No, I believe that's a(n old) bug in gtk_tree_path_up(), for which you
can find a patch here[1] if needed.

Cheers,


[1]
https://github.com/jjk-jacky/abs/blob/master/gtk3-jjk/0001-treemodel-Fix-gtk_tree_path_up-making-path-invalid.patch


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