Re: problems with gnome_lamp widget



On Tue, Jun 09, 1998 at 08:53:46PM -0400, Justin Maurer wrote:
> c.red = 255;
> c.blue = 0;
> c.green = 0;

> no matter what values i set the three colors to, the lamp is always dark
> black. i've tried 255, 100, 100, etc. none work. if i don't set them at
> all, it's set to the ince neutral grey color.

GdkColor values (as well as XColor's) range from 0x0000 to 0xffff (this
confuses me too some times :). Try `c.red = 65535;' and it should work.

-- 
Eckehard Berns



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