[Gtk-sharp-list] How do I update all the CellRenderers in a column when one value in the model changes?
matthew.pirocchi at gmail.com
Tue Feb 2 15:13:46 EST 2010
I have a TreeView whose model is a list of Tags. Each tag has two
properties: Active (bool) and Name (string). There are two columns in the
treeview: a column of CellRendererToggles for Active, and CellRendererTexts
for Name. I use information about which tags are active to filter what rows
are shown in another TreeView.
One of the tags is called "All Tags". When this tag is Active, I want to
disable the checkbox for all the other tags (since it doesn't matter whether
they are active or not). So in the render func for the checkbox, I set the
CellRendererToggle to Sensitive = !allTags.Active and Activatable =
!allTags.Active, if the Tag in the cell is not allTags. However, these
changes do not display until I mouse-over the cell.
How do I change Active and Sensitivity for multiple CellRendererToggles, and
have the changes display immediately?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gtk-sharp-list