Re: GTK Issue

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

cklester wrote:

> I was using the close button at the upper-right of the window... Using the
> menu item "Quit" works fine! No message! Can that be fixed? :)

OK, I went back and tried closing using the button at upper-right. 
It still works ok, no errors. However, this got me to thinking:
if the file is 'dirty', then you should be prompted to save the 
file regardless of *how* you choose to end the program, including 
clicking on the close button. So, if you add one line to texteditor.exu 
as shown below, that should fix the problem, as all exits will be 
made thru the same routine.

----------------[ MAIN ]---------------
       
win = window(APP)
gtkSet(win,"Border",10)
when(win,"delete_event",confirm_quit,0) -- add me!


Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu