gtk3: add a signal handler for main window to destroy properly
gtk3/sample/misc/checkbutton.rb