# File gtk/sample/gtk-demo/editable_cells.rb, line 162 def remove_item(treeview) model = treeview.model selection = treeview.selection if iter = selection.selected @articles.delete_at(iter.path.indices[0]) model.remove(iter) end end