Skip to content

Commit

Permalink
Made return value of TreeSelection.GetSelected pointer instead of copy.
Browse files Browse the repository at this point in the history
This was the result of conformal#94 discussion.
  • Loading branch information
Axel von Blomberg committed Feb 14, 2016
1 parent 8102826 commit d369f6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtk/gtk.go
Original file line number Diff line number Diff line change
Expand Up @@ -8365,13 +8365,13 @@ func wrapTreeSelection(obj *glib.Object) *TreeSelection {
}

// GetSelected() is a wrapper around gtk_tree_selection_get_selected().
func (v *TreeSelection) GetSelected() (model ITreeModel, iter TreeIter, ok bool) {
func (v *TreeSelection) GetSelected() (model ITreeModel, iter *TreeIter, ok bool) {
var cmodel *C.GtkTreeModel
var citer C.GtkTreeIter
c := C.gtk_tree_selection_get_selected(v.native(),
&cmodel, &citer)
model = wrapTreeModel(wrapObject(unsafe.Pointer(cmodel)))
iter = TreeIter{citer}
iter = &TreeIter{citer}
ok = gobool(c)
return
}
Expand Down

0 comments on commit d369f6a

Please sign in to comment.