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 Oct 24, 2014 9:37 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Column with different rows in GtkTreeView
PostPosted: Thu Sep 12, 2013 12:47 pm 
Offline
Familiar Face

Joined: Mon Jul 02, 2012 11:04 am
Posts: 5
Hello,

How to make a GtkTreeView column in each row showed the various widgets ?
When I set it GtkRendererText columns in each row displays the text, and I would like to order for a selected parameter in a row image, the next row text, the next row combo, etc.


Top
 Profile  
 
 Post subject: Re: Column with different rows in GtkTreeView
PostPosted: Sat Sep 14, 2013 6:45 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 764
Location: UK
Hello,

Yes this can be done, but it is not easy.

You will need to store in you GtkListStore/GtkTreeStore all the relevant information, so what type of renderer to use and what data to show for that type of renderer. This is not simple as you will need to take are with the data storage (pointers/memory management/etc.)

Your GtkTreeView will also need to be customised so that when it comes to the relevant data it picks the correct renderer to display your data.

This is not a case of showing you 10 lines of code and saying "there you are it will work". It will be more like several hundred lines of code.

Why do you need to show data likes that?

_________________
E.


Top
 Profile  
 
 Post subject: Re: Column with different rows in GtkTreeView
PostPosted: Fri Sep 20, 2013 1:46 pm 
Offline
Familiar Face

Joined: Tue Feb 28, 2012 1:16 pm
Posts: 11
Location: Russia
Hi.

I belive this https://github.com/matze/EggPropertyTreeView/ is what you are looking for.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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