gtk/print.go
func PaperSizeNew(name string) (*PaperSize, error) {
	cstr := C.CString(name)
	defer C.free(unsafe.Pointer(cstr))
	var gName *C.gchar

	if name == "" {
		gName = nil
	} else {
		gName = (*C.gchar)(cstr)
	}

	c := C.gtk_paper_size_new(gName)
	if c == nil {
		return nil, nilPtrErr
	}

	t := &PaperSize{c}
	runtime.SetFinalizer(t, (*PaperSize).free)
	return t, nil
}
func PaperSizeNew(name string) (*PaperSize, error) {
	cstr := C.CString(name)
	defer C.free(unsafe.Pointer(cstr))
	var gName *C.gchar

	if name == "" {
		gName = nil
	} else {
		gName = (*C.gchar)(cstr)
	}

	c := C.gtk_paper_size_new(gName)
	if c == nil {
		return nil, nilPtrErr
	}

	t := &PaperSize{c}
	runtime.SetFinalizer(t, (*PaperSize).free)
	return t, nil
}
// PaperSizeNew() is a wrapper around gtk_paper_size_new().