Re: [gtk-list] Widget creation - Problem with colors



>   col.red = 65535;
>   col.green = 0;
>   col.blue = 0;
>   gdk_window_set_background (src->win, &col);  /* Y */
>   .
>   .
I believe you need to allocate the color. The pixel field
of your col struct is uninitialized. Normally you fill in the RGB fields
(as you have done), then allocate the color, which fills
in the pixel field for you, then make the color setting calls.

HTH,
Donna



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