How can I change the color ?



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]