Subject: | missing method get_row_data_from_path? |
On execute:
$slist->signal_connect(row_activated => sub {
my ($sl, $path, $column) = @_;
my $row_ref = $sl->get_row_data_from_path($path);
}
);
The error occurs:
Can't locate object method "get_row_data_from_path" via package
"Gtk2::Ex::Simple::List"
My environment:
slackware 10.1 linux 2.4.29
perl v5.8.8 built for i486-linux-thread-multi
Gtk2-Ex-Simple-List-0.50
Subject: | List.diff |
186a187,202
> sub get_row_data_from_path_
> {
> my ($self, $path) = @_;
>
> # $path->get_depth always 1 for SimpleList
> # my $depth = $path->get_depth;
>
> # array has only one member for SimpleList
> my @indices = $path->get_indices;
> my $index = $indices[0];
>
> return $self->{data}->[$index];
> }
>