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 a lot ! It worked ! :)


-- 
Liviu BURCUSEL
Network Administrator
Registered Linux User #221627



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