Re: problems with gnome_lamp widget
- From: Eckehard Berns <eb berns prima de>
- To: Justin Maurer <mike911 clark net>, gnome-list gnome org
- Subject: Re: problems with gnome_lamp widget
- Date: Wed, 10 Jun 1998 13:43:54 +0200
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]