diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-16 20:09:51 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-16 20:09:51 -0500 |
| commit | a302590ee0a3f8c30d58c63f83d34e6fc1e1868e (patch) | |
| tree | 51986d08ab41f17ebe485d30a383c9dc9f3f07b5 | |
| parent | 5ac0af8d7916a591fabf090c57e921db1079d8c3 (diff) | |
Added crash guard for making alternates (to get editable comboboxes).
| -rw-r--r-- | sysdata_unix.go | 4 |
1 files changed, 4 insertions, 0 deletions
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() { |
