How to setup label foreground colour ?



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]