summaryrefslogtreecommitdiff
path: root/imagelist_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-11 17:35:01 -0400
committerPietro Gagliardi <[email protected]>2014-10-11 17:35:01 -0400
commit99101c026469b579f3077401254c1b33ab0f1a59 (patch)
treef1d8cd9a6535489b67bd3fa6ac99567bc30729f2 /imagelist_unix.go
parentba3efd31d2466b37b8795ae93b9fb2dacd2f15a7 (diff)
Changed deprecated gdk_pixbuf_unref() call to g_object_unref() in GTK+ ImageList.
Diffstat (limited to 'imagelist_unix.go')
-rw-r--r--imagelist_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/imagelist_unix.go b/imagelist_unix.go
index dc6e624..1729705 100644
--- a/imagelist_unix.go
+++ b/imagelist_unix.go
@@ -60,7 +60,7 @@ func (i *imagelist) Append(img *image.RGBA) {
}
i.list = append(i.list, pixbuf)
- C.gdk_pixbuf_unref(basepixbuf)
+ C.g_object_unref(C.gpointer(unsafe.Pointer(basepixbuf)))
C.cairo_surface_destroy(surface)
}