Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
fix a test of List view (#599)
Browse files Browse the repository at this point in the history
* replace a test of ListStore that was causing a memory error

* fix a typo
  • Loading branch information
jwahlstrand authored Nov 30, 2021
1 parent 24ca12f commit fc3a648
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lists.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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) =
Expand Down
4 changes: 3 additions & 1 deletion test/gui.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc3a648

Please sign in to comment.