Re: [gtkmm] cell rendering



On Fri, 2004-04-02 at 16:49, zix wrote:
> On Fri, 2004-04-02 at 07:03, gtkmm hakvoort be wrote:
> > Why not use parts of the code we talked about in the "slow treeview
> > discussion" ?
> > 
> > bart
> > 
> I thought that in those examples the colors were set at initialization. 

No, the connection between the colors and the model data is set at
initialiation.

> In my case, I want the colors to change as the underlying model data
> changes.  Or maybe I'm missing something more fundamental.

Like the examples (I think), either
1. Use a callback to set the cellrenderer color based on data in the
model.
or
2. Store the color in an invisible model column, and tell the
cellrenderer to render that as a color.

-- 
Murray Cumming
www.murrayc.com
murrayc murrayc com




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