gtk/aboutdialog.go
func (v *AboutDialog) AddCreditSection(sectionName string, people []string) {
	cname := (*C.gchar)(C.CString(sectionName))
	defer C.free(unsafe.Pointer(cname))

	cpeople := C.make_strings(C.int(len(people)) + 1)
	defer C.destroy_strings(cpeople)
	for i, p := range people {
		cp := (*C.gchar)(C.CString(p))
		defer C.free(unsafe.Pointer(cp))
		C.set_string(cpeople, C.int(i), cp)
	}
	C.set_string(cpeople, C.int(len(people)), nil)

	C.gtk_about_dialog_add_credit_section(v.native(), cname, cpeople)
}
func (v *AboutDialog) AddCreditSection(sectionName string, people []string) {
	cname := (*C.gchar)(C.CString(sectionName))
	defer C.free(unsafe.Pointer(cname))

	cpeople := C.make_strings(C.int(len(people)) + 1)
	defer C.destroy_strings(cpeople)
	for i, p := range people {
		cp := (*C.gchar)(C.CString(p))
		defer C.free(unsafe.Pointer(cp))
		C.set_string(cpeople, C.int(i), cp)
	}
	C.set_string(cpeople, C.int(len(people)), nil)

	C.gtk_about_dialog_add_credit_section(v.native(), cname, cpeople)
}
func ( v * AboutDialog ) AddCreditSection ( sectionName string , people [ ] string ) { cname := ( * C . gchar ) ( C . CString ( sectionName ) ) defer C . free ( unsafe . Pointer ( cname ) ) cpeople := C . make_strings ( C . int ( len ( people ) ) + 1 ) defer C . destroy_strings ( cpeople ) for i , p := range people { cp := ( * C . gchar ) ( C . CString ( p ) ) defer C . free ( unsafe . Pointer ( cp ) ) C . set_string ( cpeople , C . int ( i ) , cp ) } C . set_string ( cpeople , C . int ( len ( people ) ) , nil ) C . gtk_about_dialog_add_credit_section ( v . native ( ) , cname , cpeople ) }
// AddCreditSection is a wrapper around gtk_about_dialog_add_credit_section().
AddCreditSection is a wrapper around gtk_about_dialog_add_credit_section () .