Skip to content

Commit

Permalink
Setup the model of the returned Gtk::TreeIter returned by Gtk::ListSt…
Browse files Browse the repository at this point in the history
…ore#insert
  • Loading branch information
cedlemo committed Jun 26, 2015
1 parent e503635 commit 1600cfc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gtk3/lib/gtk3/list-store.rb
Expand Up @@ -56,5 +56,12 @@ def prepend
setup_iter(iter)
iter
end

alias_method :insert_raw, :insert
def insert(index)
iter = insert_raw(index)
setup_iter(iter)
iter
end
end
end

0 comments on commit 1600cfc

Please sign in to comment.