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

Gergely Kiss mail.gery at gmail.com
Sun Apr 27 09:02:33 EDT 2008

I checked the Mono Documentation and saw two interesting properties for
TreeViews: EvenRowColor and OddRowColor. The only problem is, that both of
them are read-only and I found no methods to change their values. I'm sure
that the developers of GTK# didn't forget these methods by chance. They
probably had a reason to left these methods out.

2008/4/27 Chris Howie <cdhowie at gmail.com>:

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
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080427/1b0e9cca/attachment-0001.html 

More information about the Gtk-sharp-list mailing list