Re: Accessing a Cell in a TreeView



Am Samstag, den 06.01.2007, 03:01 +0100 schrieb Emil Nowak:
> On 2007-01-05, 15:59:04 Allen wrote:

> Probably the only way to have different cells is to redesign your TreeModel
> (probably ListStore). You will need additional column to hold color values.
> 
> Then when adding column to TreeView you can specifying where renderer
> will get its data.

No, it's not the only way.  You can use cell renderer callbacks, which
has the advantage of not breaking the model-view concept.

For inspiration, see:

http://svn.gnome.org/viewcvs/regexxer/trunk/src/filetree.cc?&view=markup

--Daniel





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