Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup the model of the returned Gtk::TreeIter #466

Merged
merged 2 commits into from Jun 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions gtk3/lib/gtk3/list-store.rb
Expand Up @@ -49,5 +49,19 @@ def append
setup_iter(iter)
iter
end

alias_method :prepend_raw, :prepend
def prepend
iter = prepend_raw
setup_iter(iter)
iter
end

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