Re: Wee editor 0.36
- Posted by PeteE Nov 04, 2015
- 1965 views
Looks like the crash is a bug in the translator with routine_id when used as a default argument. I shamelessly lifted Greg's nifty callback function from that other thread:
function callback(sequence name, atom rid = routine_id(name)) if rid = -1 then crash("routine '"&name&"' is not visible") end if return call_back(rid) end function
The crash goes away if you change this line in ui_gtk.e:
connect(helpwin, "delete-event", callback("Hide"))
to:
connect(helpwin, "delete-event", call_back(routine_id("Hide")))
I'll let the experts figure it out.
On the wild idea of supporting GTK on Windows, I could probably add it, but what is the reason for it? I personally prefer native controls.