Re: GTK2: changingbg/fg color to a row in GtkTreeView
- From: Fabio Rotondo <mlists rotondo it>
- To: gtk-devel <gtk-app-devel-list gnome org>
- Subject: Re: GTK2: changingbg/fg color to a row in GtkTreeView
- Date: Wed, 13 Mar 2002 23:17:21 +0100
Havoc Pennington wrote:
If you just want alternating colors call
gtk_tree_view_set_rules_hint(). This should be used for any tree with
multiple columns of data.
Actually I need more control.
I am writing a File Manager and I'd like to show directories entries
with a different
background color from the files. Also symlinks should be highlighted.
There's no easy way to set random colors on the rows, I don't think.
You can set colors on individual cells with some of the cell
renderers, I think.
Ok, and what about the hard way? I am still confused a bit about the new
model/view/controller of GtkTreeView. Should I write a cell-renderer or
a new model or what? Is there any documentation about this a part from
GTK+ sources?
--
Ciao,
Fabio
----------------------------------------------------------
NOLUG: http://www.rotondo.it/nolug/
Advanced Foundation Classes: http://afc.sf.net
Reqtools - The Requester Library: http://reqtools.sf.net
MAME Visual Guide: http://www.rotondo.it/~fabio/mamevg/
----------------------------------------------------------
Registered Linux User #264499 - http://counter.li.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]