Re: Possible row selection interfering with Update
- From: Kevin Ryde <user42 zip com au>
- To: muppet <scott asofyet org>
- Cc: gtk-perl-list gnome org
- Subject: Re: Possible row selection interfering with Update
- Date: Mon, 12 Apr 2010 11:47:22 +1000
muppet <scott asofyet org> writes:
foreach my $path (reverse $selection->get_selected_rows ()) {
$model->remove ($model->get_iter ($path));
}
You know, after going through the TreeRowReference business I now
suspect a loop like that is enough :-).
(If a row-deleted signal handler causes more row deletions it may
invalidate the path and iter passed to further handlers - so don't do
that! Meaning it's enough to remove() from the last towards the first
...)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]