How to setup label foreground colour ?
- From: "Vladimir V. Markevich" <markj LinS ospu odessa ua>
- To: gtk-perl-list gnome org
- Subject: How to setup label foreground colour ?
- Date: Thu, 30 Aug 2001 16:29:52 +0000 (/etc/localtime)
Hi,
I need to setup colour for label widget, (a couple of labels). I want
to use my own style different from default only with colour.
My piece of code is :
...
$style = $label->get_style();
$newstyle = $style;
$newstyle->{'fg'} = $color; # the color is gdk colour allocated above
$label->set_style($newstyle);
...
And it does not work ! :(
Please, any suggestion, will be fine !
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]