From a302590ee0a3f8c30d58c63f83d34e6fc1e1868e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 16 Feb 2014 20:09:51 -0500 Subject: [PATCH] Added crash guard for making alternates (to get editable comboboxes). --- sysdata_unix.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdata_unix.go b/sysdata_unix.go index b17366a..d1dc323 100644 --- a/sysdata_unix.go +++ b/sysdata_unix.go @@ -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() {