Re: GtkLabel: color?

From: Date: Mon, 15 Oct 2001 17:17:59 +0000
Subject: Re: GtkLabel: color?
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-282@lists.php.net to get a copy of this message
well, you can do something like this: $current_style=$widget->get_style(); $new_style = $current_style->copy(); $new_style->base[GTK_STATE_NORMAL]=$bg_colour; $widget->set_style($new_style); where $bg_colour would be a GdkColor object (if I remember correctly). --rdp On Mon, 15 Oct 2001, Stephane Van de Putte wrote: > Did somebody has an example of code for this? I can't figure it out, sorry I'm > a newbie... :))) > > Quoting Andrei Zmievski <andrei@ispi.net>: > > > On Mon, 15 Oct 2001, Stephane Van de Putte wrote: > > > No, I mean text color (and if possible background color, howto also) ? > > > > I think it should be possible to change label text color via > > set_style(). The background is more difficult because the label's > > background is actually the background of its parent widget. > > > > -Andrei > > > > > > -- Rich Payne rpayne@alphalinux.org www.alphalinux.org

« previous php.gtk.general (#282) next »