Added crash guard for making alternates (to get editable comboboxes).

This commit is contained in:
Pietro Gagliardi 2014-02-16 20:09:51 -05:00
parent 5ac0af8d79
commit a302590ee0
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,10 @@ func (s *sysData) make(initText string, window *sysData) error {
println(s.ctype, "not implemented")
return nil
}
if s.alternate && ct.makeAlt == nil { // not yet implemented
println(s.ctype, "alt not implemented")
return nil
}
ret := make(chan *gtkWidget)
defer close(ret)
uitask <- func() {