func gtk_combo_box_text_insert_text(widget *C.GtkWidget, index int, text string) { ctext := C.CString(text) defer C.free(unsafe.Pointer(ctext)) C.gtk_combo_box_text_insert_text(togtkcombobox(widget), C.gint(index), togstr(ctext)) }
// InsertText is a wrapper around gtk_combo_box_text_insert_text(). func (v *ComboBoxText) InsertText(position int, text string) { cstr := C.CString(text) defer C.free(unsafe.Pointer(cstr)) C.gtk_combo_box_text_insert_text(v.native(), C.gint(position), (*C.gchar)(cstr)) }