This example shows one way to colorize rows in a SimpleList.
The basic approach is to add a color attribute to the columns in the TreeView (remember that a SimpleList is a TreeView), and store the color information in a hidden column in the model. Since the Glib type system will be used to fetch the color attribute, the hidden column must be of type Gtk2::Gdk::Color, which requires us to add a custom column type to SimpleList.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 3:
Unknown directive: =doc