Re: Treeviews: changing the color of column headers
- From: Stefan Salewski <mail ssalewski de>
- To: "Juan L. Freniche" <fdesp87 gmail com>
- Cc: gtk-list gnome org
- Subject: Re: Treeviews: changing the color of column headers
- Date: Sat, 13 Jun 2015 23:55:28 +0200
On Sat, 2015-06-13 at 20:43 +0200, Stefan Salewski wrote:
On Tue, 2015-06-09 at 08:54 +0200, Juan L. Freniche wrote:
I am trying to change the color of the column headers of a treeview,
with no sucess at all.
It is funny that currently many people try to change default colors of
GTK widgets. Of course generally that is not a good idea -- common sense
is to give users their default styles. Of course, for special
applications that may be OK. For tree view headers, I can remember that
I tried to chance something style related, and it worked after I added a
custom label widget as header text. See
http://www.daa.com.au/pipermail/pygtk/2009-February/016601.html
Try using a custom widget for the header using
TreeViewColumn.set_widget()
Sorry, have not been able to get it working with GTK2. I tried to put a
label in a column header and change the color of the label with
gtk_widget_modify_bg(label, GTK_STATE_NORMAL, &color). But it seems to
have no effect. Maybe it would work for GTK3, there we have
gtk_widget_override_color().
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]