gtk/gtk_deprecated_since_3_10.go
func ImageNewFromStock(stock Stock, size IconSize) (*Image, error) {
	cstr := C.CString(string(stock))
	defer C.free(unsafe.Pointer(cstr))
	c := C.gtk_image_new_from_stock((*C.gchar)(cstr), C.GtkIconSize(size))
	if c == nil {
		return nil, nilPtrErr
	}
	return wrapImage(glib.Take(unsafe.Pointer(c))), nil
}
func ImageNewFromStock(stock Stock, size IconSize) (*Image, error) {
	cstr := C.CString(string(stock))
	defer C.free(unsafe.Pointer(cstr))
	c := C.gtk_image_new_from_stock((*C.gchar)(cstr), C.GtkIconSize(size))
	if c == nil {
		return nil, nilPtrErr
	}
	return wrapImage(glib.Take(unsafe.Pointer(c))), nil
}
func ImageNewFromStock ( stock Stock , size IconSize ) ( * Image , error ) { cstr := C . CString ( string ( stock ) ) defer C . free ( unsafe . Pointer ( cstr ) ) c := C . gtk_image_new_from_stock ( ( * C . gchar ) ( cstr ) , C . GtkIconSize ( size ) ) if c == nil { return nil , nilPtrErr } return wrapImage ( glib . Take ( unsafe . Pointer ( c ) ) ) , nil }
// ImageNewFromStock is a wrapper around gtk_image_new_from_stock().
ImageNewFromStock is a wrapper around gtk_image_new_from_stock () .