Vendor gotk3 library to ensure consistent GTK3 bindings across environments and simplify dependency management. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
21 lines
444 B
Go
21 lines
444 B
Go
package gtk
|
|
|
|
// #include <gtk/gtk.h>
|
|
// #include "gtk.go.h"
|
|
import "C"
|
|
import (
|
|
"unsafe"
|
|
|
|
"github.com/gotk3/gotk3/glib"
|
|
)
|
|
|
|
func nativeGPermission(permission *glib.Permission) *C.GPermission {
|
|
// Note: would return C type prefixed with glib package.
|
|
// Go issue: here https://github.com/golang/go/issues/13467.
|
|
var perm *C.GPermission
|
|
if permission != nil {
|
|
perm = (*C.GPermission)(unsafe.Pointer(permission.Native()))
|
|
}
|
|
return perm
|
|
}
|