gtk/gtk.go
func ImageNewFromIconName(iconName string, size IconSize) (*Image, error) {
	cstr := C.CString(iconName)
	defer C.free(unsafe.Pointer(cstr))
	c := C.gtk_image_new_from_icon_name((*C.gchar)(cstr),
		C.GtkIconSize(size))
	if c == nil {
		return nil, nilPtrErr
	}
	obj := glib.Take(unsafe.Pointer(c))
	return wrapImage(obj), nil
}
func ImageNewFromIconName(iconName string, size IconSize) (*Image, error) {
	cstr := C.CString(iconName)
	defer C.free(unsafe.Pointer(cstr))
	c := C.gtk_image_new_from_icon_name((*C.gchar)(cstr),
		C.GtkIconSize(size))
	if c == nil {
		return nil, nilPtrErr
	}
	obj := glib.Take(unsafe.Pointer(c))
	return wrapImage(obj), nil
}
func ImageNewFromIconName ( iconName string , size IconSize ) ( * Image , error ) { cstr := C . CString ( iconName ) defer C . free ( unsafe . Pointer ( cstr ) ) c := C . gtk_image_new_from_icon_name ( ( * C . gchar ) ( cstr ) , C . GtkIconSize ( size ) ) if c == nil { return nil , nilPtrErr } obj := glib . Take ( unsafe . Pointer ( c ) ) return wrapImage ( obj ) , nil }
// TODO(jrick) GtkIconSet
/*
func ImageNewFromIconSet() {
}
*/
// TODO(jrick) GdkPixbufAnimation
/*
func ImageNewFromAnimation() {
}
*/
// ImageNewFromIconName() is a wrapper around gtk_image_new_from_icon_name().
TODO ( jrick ) GtkIconSet / * func ImageNewFromIconSet () { } TODO ( jrick ) GdkPixbufAnimation / * func ImageNewFromAnimation () { } ImageNewFromIconName () is a wrapper around gtk_image_new_from_icon_name () .