[Gtk-sharp-list] different color rows for GtkTreeView
peter at peterjohanson.com
Mon Apr 28 13:57:53 EDT 2008
On Sun, Apr 27, 2008 at 02:34:16AM -0400, Tim Howard wrote:
> I think this is appropriate material for this list. I'm trying to have
> a TreeView with a ListStore have rows that are different colors. I'm
> pretty sure it's possible, because it looks like it's the case with
> MonoDevelop and User Tasks/Comments. The question is, how?
> (Point of clarity: First row be red, second row be green -- that's all.
> I guess more generally, how do you control the row color as opposed to
> the column color)
If you want to enable that, it's supported directly by Gtk.TreeView.
Look at Gtk.TreeView.RulesHint property. The gtk+ docs for this are at:
Not that this is just a *hint*, and a theme can choose to ignore it if
it really wants to.
More information about the Gtk-sharp-list