Re: TreeModel vfuncs: iter_children() and iter_nth_child()



I'm going to assume that I'm right about this.

On Mon, 2004-03-08 at 12:09, Murray Cumming wrote:
> GtkTreeModel has both iter_children()
> http://cvs.gnome.org/lxr/source/gtk+/gtk/gtktreemodel.h#99
> and iter_nth_child()
> http://cvs.gnome.org/lxr/source/gtk+/gtk/gtktreemodel.h#106
> callbacks:
> 
> But
>   model->iter_children(iter, parent)
> seems to give the same result as
>   model->iter_nth_child(iter, parent, 0 /* n */)
> 
> Are these actually equivalent? Is there any reason for the vfunc 
> implementation to be duplicated in custom TreeModels, or can one 
> just call the other?
-- 
Murray Cumming
www.murrayc.com
murrayc murrayc com




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