there is a Program fragment:
window.signal_connect('delete_event') do
Gtk.main_quit
false
end
when i drop "false" :
window.signal_connect('delete_event') do
Gtk.main_quit
end
it can run too,what is the function of false here?
on 2010-08-08 14:20
on 2010-08-08 18:07
Hi. If you return FALSE in the "delete_event" signal handler, GTK will emit the "destroy" signal. Returning TRUE means you don't want the window to be destroyed. This is useful for popping up 'are you sure you want to quit?' type dialogs. -- Vincent Carmona ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.