Re: colored Gtk::CTree Node



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]