GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Nov 01, 2014 6:59 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: unselection in gtktreeview
PostPosted: Fri Apr 27, 2007 6:30 am 
Offline
GTK+ Geek

Joined: Fri Oct 06, 2006 6:37 am
Posts: 57
iam using gtktreeview witk gtkliststore model.
wht i need is want to remove the selection
i tried this but it doesn't seem to work
gtk_tree_model_unref_node (GTK_TREE_MODEL(store2), &iter1);
thank u
sree


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 1:01 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
So, what you are saying is that you want to deselect any rows that happen to be selected? Well, then use the following functions:

Code:
GtkTreeSelection *selection;

selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
gtk_tree_selection_unselect_all (selection);


You should check out GtkTreeSelection, because there are a multitude of functions for handling selected rows there.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group