How can I change the color ?
- From: Mike Flouris <flouris csi forth gr>
- To: gtk-list redhat com
- Subject: How can I change the color ?
- Date: Sat, 07 Feb 1998 17:31:56 +0200
Hi,
I'm using some code to create a tree using the gtk_tree widget.
I want some items of the tree to have a different color
so I use the code :
gdk_color_parse( "red", &fgcolor);
fgstyle = gtk_widget_get_style (GTK_WIDGET (item) );
fgstyle->fg[GTK_STATE_NORMAL] = fgcolor;
but all I do is change the color of all widgets ...
Do I have to create a new style and how do I do that ?
And how do I "copy" the default style to a new style ?
Thanx for any help ...
Mike &
--
////
(@ @)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-oOO-\O/-OOo-=-=-=-=
Mike D. Flouris - Institute of Computer Science
Foundation for Research & Technology, Hellas.
http://www.ics.forth.gr/~flouris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]