Re: Mapping of model attributes with unknown values to a corresponding widget display



On Mon, 2011-10-10 at 16:10 +0200, Markus Elfring wrote:
> > You can connect model columns to cell renderer properties using
> > add_attribute like so:
> > http://developer.gnome.org/gtkmm-tutorial/unstable/sec-treeview.html.en#treeview-cellrenderer-details
> 
> Thanks for your link.
> 
> 
> > So something like this should work:
> > viewcolumn->add_attribute(renderer->property_inconsistent(),
> >   m_columns.m_inconsistent);
> 
> Can such a connection also be specified for a context-sensitive predicate function?

I don't know what you mean, but I already mentioned
set_cell_data_func(), which maybe does what you want. This example uses
it:
http://developer.gnome.org/gtkmm-tutorial/unstable/sec-treeview-examples.html.en#sec-editable-cells-example

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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