How to setup label foreground colour ?


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

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]