gtk/aboutdialog.go
func (v *AboutDialog) SetArtists(artists []string) {
	cartists := C.make_strings(C.int(len(artists) + 1))
	for i, artist := range artists {
		cstr := C.CString(artist)
		defer C.free(unsafe.Pointer(cstr))
		C.set_string(cartists, C.int(i), (*C.gchar)(cstr))
	}

	C.set_string(cartists, C.int(len(artists)), nil)
	C.gtk_about_dialog_set_artists(v.native(), cartists)
	C.destroy_strings(cartists)
}
func (v *AboutDialog) SetArtists(artists []string) {
	cartists := C.make_strings(C.int(len(artists) + 1))
	for i, artist := range artists {
		cstr := C.CString(artist)
		defer C.free(unsafe.Pointer(cstr))
		C.set_string(cartists, C.int(i), (*C.gchar)(cstr))
	}

	C.set_string(cartists, C.int(len(artists)), nil)
	C.gtk_about_dialog_set_artists(v.native(), cartists)
	C.destroy_strings(cartists)
}
func ( v * AboutDialog ) SetArtists ( artists [ ] string ) { cartists := C . make_strings ( C . int ( len ( artists ) + 1 ) ) for i , artist := range artists { cstr := C . CString ( artist ) defer C . free ( unsafe . Pointer ( cstr ) ) C . set_string ( cartists , C . int ( i ) , ( * C . gchar ) ( cstr ) ) } C . set_string ( cartists , C . int ( len ( artists ) ) , nil ) C . gtk_about_dialog_set_artists ( v . native ( ) , cartists ) C . destroy_strings ( cartists ) }
// SetArtists is a wrapper around gtk_about_dialog_set_artists().
SetArtists is a wrapper around gtk_about_dialog_set_artists () .