gtk/print.go
func PaperSizeGetPaperSizes(includeCustom bool) *glib.List {
	clist := C.gtk_paper_size_get_paper_sizes(gbool(includeCustom))
	if clist == nil {
		return nil
	}

	glist := glib.WrapList(uintptr(unsafe.Pointer(clist)))
	glist.DataWrapper(func(ptr unsafe.Pointer) interface{} {
		return &PaperSize{(*C.GtkPaperSize)(ptr)}
	})

	runtime.SetFinalizer(glist, func(glist *glib.List) {
		glist.FreeFull(func(item interface{}) {
			ps := item.(*PaperSize)
			C.gtk_paper_size_free(ps.GtkPaperSize)
		})
	})

	return glist
}
func PaperSizeGetPaperSizes(includeCustom bool) *glib.List {
	clist := C.gtk_paper_size_get_paper_sizes(gbool(includeCustom))
	if clist == nil {
		return nil
	}

	glist := glib.WrapList(uintptr(unsafe.Pointer(clist)))
	glist.DataWrapper(func(ptr unsafe.Pointer) interface{} {
		return &PaperSize{(*C.GtkPaperSize)(ptr)}
	})

	runtime.SetFinalizer(glist, func(glist *glib.List) {
		glist.FreeFull(func(item interface{}) {
			ps := item.(*PaperSize)
			C.gtk_paper_size_free(ps.GtkPaperSize)
		})
	})

	return glist
}
// PaperSizeGetPaperSizes() is a wrapper around gtk_paper_size_get_paper_sizes().