thanks to @errol.
Hi,
I have created a GtkListStore.
Lots of elements.
After fill up the list i have selected the last row of the list.
Code:
for ( int i = 0; i<300;i++ ) {
gtk_list_store_append( store, &iter );
gtk_list_store_set( store, &iter, ......, -1 );
}
selection = gtk_tree_view_get_selection( GTK_TREE_VIEW( view ));
gtk_tree_selection_select_iter( selection, &iter );
// .......add solving code !!!!! ............
gtk_tree_selection_get_selected( selection, &model, &iter );
path = gtk_tree_model_get_path( model, &iter );
gtk_tree_view_scroll_to_cell( GTK_TREE_VIEW( view ), path, NULL, FALSE, 0, 0 );
gtk_tree_path_free( path );
// .................................................
Row is selected but is not show in the window of list.
If i drag the vertical scrollbar i can see the row selected.
How can i syncronize the scrollbar to see directly the row selected ?