gdk/gdk.go
func PixbufLoaderNewWithType(t string) (*PixbufLoader, error) {
	var err *C.GError

	cstr := C.CString(t)
	defer C.free(unsafe.Pointer(cstr))

	c := C.gdk_pixbuf_loader_new_with_type((*C.char)(cstr), &err)
	if err != nil {
		defer C.g_error_free(err)
		return nil, errors.New(C.GoString((*C.char)(err.message)))
	}

	if c == nil {
		return nil, nilPtrErr
	}

	return &PixbufLoader{glib.Take(unsafe.Pointer(c))}, nil
}
func PixbufLoaderNewWithType(t string) (*PixbufLoader, error) {
	var err *C.GError

	cstr := C.CString(t)
	defer C.free(unsafe.Pointer(cstr))

	c := C.gdk_pixbuf_loader_new_with_type((*C.char)(cstr), &err)
	if err != nil {
		defer C.g_error_free(err)
		return nil, errors.New(C.GoString((*C.char)(err.message)))
	}

	if c == nil {
		return nil, nilPtrErr
	}

	return &PixbufLoader{glib.Take(unsafe.Pointer(c))}, nil
}
func PixbufLoaderNewWithType ( t string ) ( * PixbufLoader , error ) { var err * C . GError cstr := C . CString ( t ) defer C . free ( unsafe . Pointer ( cstr ) ) c := C . gdk_pixbuf_loader_new_with_type ( ( * C . char ) ( cstr ) , & err ) if err != nil { defer C . g_error_free ( err ) return nil , errors . New ( C . GoString ( ( * C . char ) ( err . message ) ) ) } if c == nil { return nil , nilPtrErr } return & PixbufLoader { glib . Take ( unsafe . Pointer ( c ) ) } , nil }
// PixbufLoaderNewWithType() is a wrapper around gdk_pixbuf_loader_new_with_type().
PixbufLoaderNewWithType () is a wrapper around gdk_pixbuf_loader_new_with_type () .