{"action":"created","issue":{"url":"https://api.github.com/repos/mattn/go-gtk/issues/287","repository_url":"https://api.github.com/repos/mattn/go-gtk","labels_url":"https://api.github.com/repos/mattn/go-gtk/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/mattn/go-gtk/issues/287/comments","events_url":"https://api.github.com/repos/mattn/go-gtk/issues/287/events","html_url":"https://github.com/mattn/go-gtk/issues/287","id":183065943,"number":287,"title":"4025: cannot use value (type unsafe.Pointer) as type C.gpointer","user":{"login":"Petricevic","id":5094739,"avatar_url":"https://avatars.githubusercontent.com/u/5094739?v=3","gravatar_id":"","url":"https://api.github.com/users/Petricevic","html_url":"https://github.com/Petricevic","followers_url":"https://api.github.com/users/Petricevic/followers","following_url":"https://api.github.com/users/Petricevic/following{/other_user}","gists_url":"https://api.github.com/users/Petricevic/gists{/gist_id}","starred_url":"https://api.github.com/users/Petricevic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Petricevic/subscriptions","organizations_url":"https://api.github.com/users/Petricevic/orgs","repos_url":"https://api.github.com/users/Petricevic/repos","events_url":"https://api.github.com/users/Petricevic/events{/privacy}","received_events_url":"https://api.github.com/users/Petricevic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-14T14:34:02Z","updated_at":"2016-10-15T05:45:29Z","closed_at":null,"body":"Debian 64 with Mate\r\ngtk installed\r\nI this message and I can not go on:\r\ngo/src/github.com/mattn/go-gtk/gtk/gtk.go:4025: cannot use value (type unsafe.Pointer) as type C.gpointer in argument to _Cfunc_to_GTreePath\r\nthank you\r\n"},"comment":{"url":"https://api.github.com/repos/mattn/go-gtk/issues/comments/253964763","html_url":"https://github.com/mattn/go-gtk/issues/287#issuecomment-253964763","issue_url":"https://api.github.com/repos/mattn/go-gtk/issues/287","id":253964763,"user":{"login":"mattn","id":10111,"avatar_url":"https://avatars.githubusercontent.com/u/10111?v=3","gravatar_id":"","url":"https://api.github.com/users/mattn","html_url":"https://github.com/mattn","followers_url":"https://api.github.com/users/mattn/followers","following_url":"https://api.github.com/users/mattn/following{/other_user}","gists_url":"https://api.github.com/users/mattn/gists{/gist_id}","starred_url":"https://api.github.com/users/mattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattn/subscriptions","organizations_url":"https://api.github.com/users/mattn/orgs","repos_url":"https://api.github.com/users/mattn/repos","events_url":"https://api.github.com/users/mattn/events{/privacy}","received_events_url":"https://api.github.com/users/mattn/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T05:45:29Z","updated_at":"2016-10-15T05:45:29Z","body":"bits older. But if this fixes your problem, I'll merge this.\r\n\r\n```diff\r\ndiff --git a/gtk/gtk.go b/gtk/gtk.go\r\nindex 8b2a3fb..b6fd827 100644\r\n--- a/gtk/gtk.go\r\n+++ b/gtk/gtk.go\r\n@@ -4022,7 +4022,7 @@ func NewTreePathFromString(path string) *TreePath {\r\n \treturn &TreePath{C.gtk_tree_path_new_from_string(gstring(ptr))}\r\n }\r\n func TreePathFromNative(value unsafe.Pointer) *TreePath {\r\n-\treturn &TreePath{C.to_GTreePath(value)}\r\n+\treturn &TreePath{C.to_GTreePath(C.gpointer(value))}\r\n }\r\n func NewTreePathNewFirst() *TreePath {\r\n \treturn &TreePath{C.gtk_tree_path_new_first()}\r\n```"}}
{"actor":{"display_login":"mattn"}}