Re: NewbieQ: Changing color on drawing primitives



GdkColor        color;

color->pixel = 0;
color->red = 65535;
color->green = 0;
color->blue = 0;

Then just try gdk_colormap_alloc_color. It's the functiun that allocated
the GdkColor, fixing the "pixel" value. You were right, a GdkColor with
a "pixel" value is an allocated one.
For more details, take a look at
http://developer.gnome.org/doc/API/gdk/gdk-colormaps-and-colors.html

Clement.




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