Re: List Store
- From: Jonathan Blandford <jrb redhat com>
- To: Arno <dark-arno ifrance com>
- Cc: Mailling List gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: List Store
- Date: 30 Jul 2002 13:58:41 -0400
Arno <dark-arno ifrance com> writes:
Hello,
I create a list of entry like in the gtk-demo : List Store. I make a
callback on the event change. In this callback, I want to know if
there are a prev item and a next item.
For the next item, I wrote :
GtkTreeIter iter;
GtkTreeModel *model;
if (gtk_tree_selection_get_selected (selection, &model, &iter))
{
if (gtk_tree_model_iter_next (model, &iter))
printf("Next: YES\n");
else
printf("Next: NO\n");
}
But I don't know I could get a GtkTreeIter on the preceding
element. Could you help me ?
Convert it to a path. Should be easy to figure out from that.
-Jonathan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]