Re: Changing the background color of a window

2003-02-25 Thread José Vitor de Santana
Havoc Pennington wrote: > I don't think gtk_widget_modify_bg() requires > allocating the color... I eventually got my test program running fine, see my reply to Sven. > In general with GTK 2 allocating/freeing > colors should never be necessary, > gdk_rgb_find_color() and > gdk_gc_set_fg_c

Re: Changing the background color of a window

2003-02-25 Thread José Vitor de Santana
Havoc Pennington wrote: > I don't think gtk_widget_modify_bg() requires > allocating the color... I eventually got my test program running fine, see my reply to Sven. > In general with GTK 2 allocating/freeing > colors should never be necessary, > gdk_rgb_find_color() and > gdk_gc_set_fg_c

Re: Changing the background color of a window

2003-02-25 Thread José Vitor de Santana
Sven Neumann wrote: > The red, green, blue fields of the GdkColor > struct use 16 bit, so you > will want to use a range from 0 to 1<<16. > This will however not suffice since you need > to allocate the color before it can be used. > If you really want to play with colors, > you should read...