Re: Gtk2::TreePath broken on Debian?



Matthew Braid <ptkperl mdb id au> writes:

my $path = undef;
$mod->foreach(sub {
                my ($model, $tpath, $iter, $lookfor) = @_;
                return 0 if $model->get($iter, 1) != $lookfor;
                $path = $tpath;

Probably must $tpath->copy there, as a treepath object generally doesn't
survive beyond the call that created it.

I get a segfault at $path->to_string.

Sounds likely :-)

I assume $mod->get_iter($path) is masking

Or finding no such row for the first couple of (bad) indices and
stopping there.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]