[Gtk-sharp-list] different color rows for GtkTreeView

Chris Howie cdhowie at gmail.com
Sun Apr 27 05:09:10 EDT 2008


On Sun, Apr 27, 2008 at 2:34 AM, Tim Howard <timothy.howard at gmail.com> 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)
>
> Thanks!

That would be controlled by the GTK+ theme selected by the user.
Unless you have a really, really, *REALLY* good reason to decide not
to honor the user's preferences, you should just stick with the
default.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Gtk-sharp-list mailing list