Re: How to setup label foreground colour ?
- From: Jim Edwards <jimedwards altavista com>
- To: "Vladimir V. Markevich" <markj LinS ospu odessa ua>
- Cc: gtk-perl-list gnome org
- Subject: Re: How to setup label foreground colour ?
- Date: Thu, 30 Aug 2001 13:30:49 +0000
I found that the easiest way to do it was to use a style file such as:
#
# Sets the clist attached to the glarea to black background which matchs
# the glarea background
#
style "blackbase"
{
fg[NORMAL]={ 0.8, 0.8, 0.8 }
base[NORMAL]={ 0.0, 0.0, 0.0 }
bg[NORMAL]={ 0.0, 0.0, 0.0 }
}
widget "window3D.*.VariableCTree" style "blackbase"
To do this you also need to export widget names using
gtk_widget_set_name
Jim
"Vladimir V. Markevich" wrote:
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 !
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]