diff --git a/src/lists.jl b/src/lists.jl index 5a0108d9..16793950 100644 --- a/src/lists.jl +++ b/src/lists.jl @@ -183,7 +183,7 @@ end deleteat!(listStore::GtkListStoreLeaf, index::Int) = delete!(listStore, iter_from_index(listStore, index)) pop!(listStore::GtkListStoreLeaf) = deleteat!(listStore, length(listStore)) -popfirst!(listSTore::GtkListStoreLeaf) = deleteat!(listStore, 1) +popfirst!(listStore::GtkListStoreLeaf) = deleteat!(listStore, 1) isvalid(listStore::GtkListStore, iter::TRI) = diff --git a/test/gui.jl b/test/gui.jl index 024af93a..33488e41 100755 --- a/test/gui.jl +++ b/test/gui.jl @@ -655,7 +655,9 @@ iter = selected(selmodel) @test Gtk.index_from_iter(ls, iter) == 1 @test ls[iter, 1] == 44 deleteat!(ls, iter) -@test isvalid(ls, iter) == false +select!(selmodel, Gtk.iter_from_index(ls, 1)) +iter = selected(selmodel) +@test ls[iter, 1] == 35 tmSorted=TreeModelSort(ls) G_.model(tv,tmSorted)