// Conversion function func newWindowFromNative(obj unsafe.Pointer) interface{} { w := &Window{} w.object = C.to_GdkWindow(obj) if gobject.IsObjectFloating(w) { gobject.RefSink(w) } else { gobject.Ref(w) } windowFinalizer(w) return w }
func WindowFromUnsafe(window unsafe.Pointer) *GdkWindow { return &GdkWindow{ C.to_GdkWindow(window)} }