What is the function of false in the Program fragment?

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?

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 C.


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs