Re: [gtkmm] Reset a value in a cell



Hello!

> In my application the color of cells in a TreeView is taken from a special
> "hidden" colomn:
> "pColumn->add_attribute(pRenderer->property_foreground_gdk(),
>                 currTableColumns.fcolors[cols_count-1]);"
> [...]
> Is there any way to reset the value in a cell to its default value?
> Something like:
> (*it)(currTableColumns.fcolors[colnum]).reset_value()?

I don't think this make sense. You connected an attribute to the column
cell renderer, e.g. this means that on every cell update the attribute is
copied into the cellrenderer (and so every time the color is newly set).

Beside from that I think you can reset the foreground color [of a
TextCellRenderer] if you assign property_foreground_set() = false;


Regards,
Frank Naumann



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