func newComboBox(comboBoxP **gtk.ComboBoxText, choices []string) (obj *gtk.Widget, err error) { *comboBoxP, err = gtk.ComboBoxTextNew() if err != nil { return } for _, s := range choices { (*comboBoxP).AppendText(s) } (*comboBoxP).SetActive(0) obj = &(*comboBoxP).Widget return }
// ComboBoxText creates a *gtk.ComboBoxText. func ComboBoxText() *gtk.ComboBoxText { w, _ := gtk.ComboBoxTextNew() return w }