Re: gtk_tree_path_next and gtk_tree_path_prev

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

 



Hello.

> I use gtk_tree_path_next and gtk_tree_path_prev to move a list element
> up or down. gtk_tree_path_prev returns a boolean value, to indicate if
> there's a previous element. But gtk_tree_path_next does not. Why this?
> Is this there a reason. Or was it forgotten?

GtkTreePaths do not know anything about underlying model (number of
elements, ...), which means that it's always possible to obtain next
path. Whether this new path corresponds to anything inside model is
beyond the scope of path itself (you'll check this when obtaining iter
from this path). On the other hand, previous path cannot be obtained
if your current path already points to first element (the one with
index 0) and this is what gtk_tree_path_prev() reports with it's
return value.

> And is the last sentence proper English? :-)

As long as I'm able to understand you, I really don't care much;)

Tadej


-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeboro@xxxxxxxxx
tadej.borovsak@xxxxxxxxx
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux