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



Hi;

On 3 November 2016 at 18:25, Olivier Brunel <jjk jjacky com> wrote:
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

Considering that this commit seems to be from 2014, did you ever
consider filing a bug with this patch?

Ciao,
 Emmanuele.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]


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