removing rows from a treestore via a selection
| From: | Sven Siwek | Date: | Sun, 05 Nov 2006 14:12:56 +0000 |
| Subject: | removing rows from a treestore via a selection | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7445@lists.php.net to get a copy of this message | ||
Hi!
I do have following coded:
$selection = $this->get_widget('treeview1')->get_selection();
list ($model, $arPaths) = $selection->get_selected_rows();
if ($arPaths <> null) {
foreach ($arPaths as $path) {
$iter = $model->get_iter($path);
$model->remove($iter);
}
}
But that does not work :(.
Instead I do get following warning:
PHP Warning: GtkListStore::get_iter(): invalid tree path
What I am doing wrong?
Have a nice day
Sven