major cleanup

This commit is contained in:
Avi Zimmerman
2021-01-08 16:06:52 +02:00
parent cbf6279abc
commit ca1cdb00e7
54 changed files with 720 additions and 305 deletions

View File

@@ -8,7 +8,7 @@ import (
"time"
"unsafe"
"github.com/gotk3/gotk3/glib"
"github.com/tinyzimmer/go-glib/glib"
)
func toGObject(data unsafe.Pointer) *glib.Object {
@@ -99,7 +99,7 @@ func streamSliceToGlist(streams []*Stream) *C.GList {
for _, stream := range streams {
wrapped = wrapped.Append(uintptr(stream.Unsafe()))
}
return (*C.GList)(unsafe.Pointer(wrapped.Native()))
return &glist
}
func glistToStreamSlice(glist *C.GList) []*Stream {