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:
Unknown directive: =doc
To install Gtk2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gtk2
CPAN shell
perl -MCPAN -e shell install Gtk2
For more information on module installation, please visit the detailed CPAN module installation guide.