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

Cannot invoke gtk.TreeView.SetSelectFunction() #387

Closed
andydotxyz opened this issue Sep 10, 2018 · 1 comment
Closed

Cannot invoke gtk.TreeView.SetSelectFunction() #387

andydotxyz opened this issue Sep 10, 2018 · 1 comment

Comments

@andydotxyz
Copy link

I cannot make the function call work - there seems to be a pointer to an interface causing an issue.

My code looks like this:

	var selector gtk.GtkTreeSelecter
	selector = mainView
	list.GetSelection().SetSelectFunction(&selector)

mainView implements gtk.GtkTreeSelector but I cannot pass mainView or &mainView to the SetSelectFunction function

The output is this:

panic: runtime error: cgo argument has Go pointer to Go pointer

I checked the documentation and examples but cannot see any demos of how to use this API...

@mattn mattn closed this as completed in ab25965 Sep 10, 2018
@andydotxyz
Copy link
Author

Excellent, thanks so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant