|
Hi,
how can i get the last iter from a GtkListStore list ? for the first iter i found this. valid = gtk_tree_model_get_iter_first( GTK_TREE_MODEL( list_store ), &iter ); and for the last iter ?
Thanks tadeboro ! Is working.
nodes = gtk_tree_model_iter_n_children( GTK_TREE_MODEL( list_store ), NULL ); // must go to nodes-1 to get the last element. gtk_tree_model_iter_nth_child( GTK_TREE_MODEL( list_store ), &iter, NULL, nodes - 1 ); model = gtk_tree_view_get_model( GTK_TREE_VIEW( list_view )); gtk_tree_model_get( model, &iter, ....., -1 );
_________________ c/c++ for ever
Last edited by perosoft on Thu Jan 19, 2012 11:43 am, edited 1 time in total.
|