GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Sep 15, 2014 4:03 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: edit row in TreeView
PostPosted: Wed Oct 26, 2011 12:05 am 
Offline

Joined: Tue Oct 25, 2011 11:55 pm
Posts: 1
I'm making an Add button which should add new emthy columns into the TreeView. Can someone tell me how to make this rows editable... but only this rows that I add... not the others.
I'm using gtk_list_store_append and gtk_list_store_set.

Thaks


Top
 Profile  
 
 Post subject: Re: edit row in TreeView
PostPosted: Mon Oct 31, 2011 8:28 pm 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hello and welcome to the GTK+ forums!

To restrict editing of certain rows, you'll most probably want to add another gboolean column to your data store that will holds "editable" flag value. Them simply connect GtkCellRendererText:editable property to your new column and you should be done.

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: No registered users and 1 guest


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