To: frechot at labri.fr Cc: lablgtk at kaba.or.jp Subject: Re: colors, fonts and tree items In-Reply-To: <3ABF7385.6E77C227 at labri.fr> References: <3AB24BB2.47DEE112 at labri.u-bordeaux.fr> <20010317122620K.garrigue@kurims.kyoto-u.ac.jp> <3ABF7385.6E77C227@labri.fr> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <20010416105813N.garrigue at kurims.kyoto-u.ac.jp> Date: Mon, 16 Apr 2001 10:58:13 +0900 From: Jacques Garrigue Lines: 32 From: Jocelyn Fr=E9chot Sorry for the very slow answer. > All right, it works very well. I like these pretty colors :) > = > I understood the code (I think...) but now, I try to change foreground= = > color and font. And, of course, my poor tree remains like it has alway= s = > been (except for the funny background colors!). Currently the style object does not contain functions to change foreground colors... So you would have to add them to the interface first. However, I suppose that your error is more fundamental: foreground properties, both color and font, should be changed on the label widget itself, not the evbox. For instance you can try adding the following lines to you program: let courier =3D Gdk.Font.load "-*-courier-*" in let style =3D label#misc#style#copy in label#misc#set_style style; style#set_font courier This should work. Cheers, Jacques