RE: [gtkmm] Reset a value in a cell



> From: Igor Gorbounov [mailto:igorbounov voronezh serw ru] 
> Hi, All!
> 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]);"
> And before any color values are put into cells of this special colomn
> all rows in the treeview have a default look (provided, I suppose, by
> window manager);

Probably by GTK+, actually, or maybe a GTK+ theme.

> those rows are in stripes of alternative color.
> I like these stripes.
> So after using some special colors I need to reset the cell colors
> to default values.
> Is there any way to reset the value in a cell to its default value?
> Something like:
> (*it)(currTableColumns.fcolors[colnum]).reset_value()?
>     Hopefully,
>        Igor Gorbounov

Can you just read the default value at runtime and then use it later? I
don't think there's a better way, though you could ask on the GTK+ list
about default property values in general.

Murray Cumming
murrayc usa net
www.murrayc.com 



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