List Store



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 ?

Arno


______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif





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