Content-Type: text/plain; charset="iso-8859-1" From: Stalkern 2 Reply-To: stalkern2 at tin.it To: lablgtk at kaba.or.jp Subject: Re: LablGTK RGB Color + Path to Pixmaps Date: Tue, 4 Feb 2003 15:57:09 +0100 References: <200302041425.11993.stalkern2 at tin.it> <20030204232159R.garrigue at kurims.kyoto-u.ac.jp> In-Reply-To: <20030204232159R.garrigue at kurims.kyoto-u.ac.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200302041557.09803.stalkern2 at tin.it> Il Tuesday 04 February 2003 15:21, Jacques Garrigue ha scritto: > From: Stalkern 2 > > > let _ = style#set_bg [`NORMAL, `RGB (208,208,219) ] > > If I remember correctly, `RGB takes 16-bit values. > That is, this should be `RGB(208*256,208*256,219*256), otherwise > everything will be black... > > Jacques That is exact, everything WAS black... Thank you very much. In the meanwhile, I've discovered a nice hint for beginners, that I'd describe as follows ======================================= If you're using .xpm pixmaps and can't put them in a directory separate dfrom the sources, and can't find where to set a path to them, and you're using libgladecc... ======================================= ... that's because "libglade expects to find the pixmaps in the same directory as the glade file." (found at http://www.daa.com.au/pipermail/pygtk/2001-June/001408.html). So, move your .glade template to that Directory also and change your Makefile consequently. AFAIK compilation will not integrate the pixmaps into the binary, so just keep the same relative position when you'll distribute the binaries ======================================= Bye Ernesto