Re: Index of GtkTreeIter



Jacob Ilsø Christensen wrote:

Hi.

Is it possible given a GtkTreeIter to get the position of the row it
points to? That is, if one had four rows in a GtkListStore for example:

R1
R2
R3
R4

and an iter pointing to R3 then one would get back the integer 2.

Thanks in advance,
Jacob



_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Have you looked at:
http://developer.gnome.org/doc/API/2.0/gtk/gtk-gtktreemodel.html#gtk-tree-model-get-path

This allows you to get the index at each level (for trees) and I expect the index for a list.

Regards,

Martyn





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