Re: How to change background color in a window



Hi,

Rick Amont <ric_amont yahoo com> writes:

> I have been trying to change the background color of a
> window in GTK+. I have tried, among other things,
> changing the background color in the widget's style
> like this
> GtkStyle *style;
> style = gtk_widget_get_style(window);
> style = gtk_style_copy(style); //Saw this one in a
> mail //list but I don't get it
> style->fg[0] = white; //white defined as a color before

didn't you want to change the background color? That would have been
style->bg[] then.


Salut, Sven



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