Re: Treeviews: changing the color of column headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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().


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux