Re: Change row background on a Treeview
- From: dexter <dexter balabit hu>
- To: gtkmm-list gnome org
- Subject: Re: Change row background on a Treeview
- Date: Fri, 25 Jan 2008 14:22:20 +0100
Hi,
I think what you're searching for is:
void Gtk::TreeView::set_rules_hint(bool setting = true)
But.. you should be aware of what the documentation says about this:
"Do not use it just because you prefer the appearance of the ruled tree;
that's a question for the theme. Some themes will draw tree rows in
alternating colors even when rules are turned off, and users who prefer
that appearance all the time can choose those themes. You should call
this function only as a semantic hint to the theme engine that your tree
makes alternating colors useful from a functional standpoint (since it
has lots of columns, generally)."
----- Original Message -----
From: Pedro Sousa <pasousa ml gmail com>
To: gtkmm-list gnome org
Sent: Fri, Jan 25, 2008 2:07:24 PM +0100
Subject: Change row background on a Treeview
Hi,
I want to change the color background in the rows of a treeview,
creating an effect on the type
------------
|color blue|
|----------|
|color red |
|----------|
|color blue|
|----------|
|color red |
|----------|
| ... |
------------
Can anyone give me a pointer to documentation or explain how can I do this?
My best regards
Pedro Sousa
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]