Re: GtkTreeView: different renderes within one row?



On 5/30/07, Felix Kater <fkater googlemail com> wrote:
hi,

I am new to GtkTreeView:

Are cell renderers bound to columns or can they change between rows of
the same column?

AFAIK cell renderers are defined once for each column, and are the
same for all the rows, but you can have more than one cell renderer in
each column.


I'd like to create a two column list with simple text display on the
left but each row having a different renderer on the right (combo,
spin, entry).


I suggest you then create a custom cell renderer which will adapt
itself to the display you want for each row, and use that cell
renderer for the column on the right.

Regards,

Vivien



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