Date: Thu, 10 Jun 2004 14:06:44 +0100 To: lablgtk at kaba.or.jp Subject: Re: Setting the background color on a label Message-ID: <20040610130644.GA10426 at redhat.com> References: <20040610130259.GA10340 at redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040610130259.GA10340 at redhat.com> From: Richard Jones On Thu, Jun 10, 2004 at 02:02:59PM +0100, Richard Jones wrote: > I read the FAQ: > http://ometer.com/gtk-colors.html > > All well and good. So I did: > > let qlabel = GMisc.label ~text:"Question" ~height:150 > ~packing:vbox#pack () in > qlabel#misc#modify_bg [`NORMAL, `WHITE]; > qlabel#misc#modify_font (Pango.Font.from_string "times 36"); > > The font size changes fine, but nothing at all happens to the > background color, no matter what I try. Help! Got it ... Put it in an event box and set the background color of that ... Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment MAKE+ is a sane replacement for GNU autoconf/automake. One script compiles, RPMs, pkgs etc. Linux, BSD, Solaris. http://www.annexia.org/freeware/makeplus/