Highlight the row of treeview



I  am using  one  textbox & treeview in my application.
In textbox , i type number of the row  of treeview .
I want to highlight the  row , of that  nr .
 
I am  using this code . But it is not working .
======================================
 GtkTreePath  *path1;
  GtkTreeSelection *selection;
   
path1 = gtk_tree_path_new_from_string("1");
gtk_tree_selection_select_path(selection,path1);
 
GtkTreeModel *model;
GtkWidget  *treeview;
GtkTreeIter iter;
 
treeview = lookup_widget(fifteenth_window,"var_treeview");
model = gtk_tree_view_get_model(GTK_TREE_VIEW(treeview));
gtk_tree_model_get_iter_from_string (model, &iter, search_list);
gtk_tree_model_row_changed(model,path1,&iter);
gtk_tree_path_free(path1);
 
==================================
 
Any  help will be  appreciated
 
Regards
Rahul..
 
 


Start Where U R ..
With What U Have ..
Make something About It ..
Never be satisfied ... => Gorge Karver

Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more. Download now.



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