On Sun, 2001-12-23 at 15:47, Miguel de Icaza wrote:
> > Nice, but I think that would be sort of a PITA to implement with ETree. 
> > (Interestingly enough, it would be pretty easy to do with the new gtk+
> > tree widget, but that is a whole other story...)
> 
> How would this be difficult with ETree?  You just need to implement a
> cell renderer that can display both things, something along the lines
> of:
> 
> struct MultiRenderer  {
>       ECellText parent;
> }

It would actually probably be more like the ECellTree that can contain a
subrenderer.  Example:

struct ECellBadges {
};

e_cell_badges_render
{
        Calculate with of badges.
        subcell.render ();
        Render badges.
}

See ECellTree for an example of how this would be done.

Thanks,
    Chris


_______________________________________________
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers

Reply via email to