GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Jul 25, 2014 8:36 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How I can change of a row to other in a gtktreeview
PostPosted: Sun Oct 16, 2011 6:58 pm 
Offline
Familiar Face

Joined: Fri Jul 15, 2011 11:41 am
Posts: 12
I am trying to create an application in C which contains a gtktreeview which I want change of a row to other with 2 buttons (up and down), but I don't know how I can make this.

Thank you.


Top
 Profile  
 
 Post subject: Re: How I can change of a row to other in a gtktreeview
PostPosted: Wed Oct 19, 2011 1:12 pm 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hi.

General steps of doing this would be:
  1. create all your widgets
  2. obtain GtkTreeSelection from tree view using gtk_tree_view_get_selection
  3. call methods of GtkTreeSelection from GtkButton::clicked callback that will move your selection

Cheers,
Tadej


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], Yahoo [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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group