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

Re: Changing window color



On Thu, 30 Jan 2003 13:31:20 +0100 (CET)
TORRI Vincent wrote:


> 
> Hello,
> 
>   you could use the style of a widget :
> 
> 
>   GtkWidget *w;
>   GdkColor col = {0, 0xffff, 0x0000, 0x0000};
>   GtkStyle *style;
> 
>   w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
> 
>   style = gtk_widget_get_style (w); 
>   style->bg[GTK_STATE_NORMAL] = col;
>   gtk_widget_set_style (w, style);
> 
> 
> and the background is red.  
> 
> regards
> 
> Vincent TORRI
> 
Thanks again !
Now my window is all red and I want to turn it back gray. I followed the
same steps with the color changed and the window still remains red. How
can I make it back ? I'm a little bit lost


-- 
Liviu BURCUSEL
Network Administrator
Registered Linux User #221627



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