Re: colored Gtk::CTree Node
- From: perl-gtk skydancer org uk (Pete Jordan)
- To: gtk-perl-list gnome org
- Subject: Re: colored Gtk::CTree Node
- Date: Mon, 14 Jan 2002 00:16 +0000 (GMT Standard Time)
Jens Luedicke <jens irs-net com> wrote:
How can I change the font-color an Gtk::CTree node?
By assigning a style to it. Set the style's colour with something like:
my $red=Gtk::Gdk::Color->parse_color('red');
$cmap->color_alloc($red);
my $style=Gtk::Style->new;
$style->fg('normal', $red);
$style->font($font);
and assign the style, so:
$ctree->node_set_cell_style($node, 0, $style);
Pete Jordan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]