Re: [gtk-list] Widget creation - Problem with colors
- From: "Donna S. Martin" <donna omartin com>
- To: <gtk-list redhat com>
- Subject: Re: [gtk-list] Widget creation - Problem with colors
- Date: Sat, 15 Jan 2000 15:35:40 -0700
> 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]