Re: Wee editor 0.36

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu