Re: Formatted text for tables.
- From: "Shalom Bhooshi" <s bhooshi gmail com>
- To: "Gtk2-Perl Mailing List" <gtk-perl-list gnome org>
- Cc: muppet <scott asofyet org>
- Subject: Re: Formatted text for tables.
- Date: Wed, 13 Feb 2008 14:42:00 +0000
I'd gathered I could pango markup, i just didn't know how to go about it.
First, i had tried setting the markup attribute the long way via Gtk2::TreeViewColumn::set_cell_data_func() like this
$column->set_cell_data_func ($filename, sub {
my ($column, $cell, $model, $iter) = @_;
my $cell->set( 'markup' => markupTextAtIter($model, $iter) );
},
undef);
It wasn't until you hinted "little simpler" that I realized you could store the markup in the TreeView's model and have it displayed directly like this.
$columns->add_attribute( $cellrenderer, 'markup', MARKUP_COLUMN );
Thanks a lot, I really appreciate it.
Shalom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]