Created
April 26, 2009 14:20
-
-
Save danlucraft/102048 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make dialog respond | |
dialog.response(dialog.get_response(button)) | |
# run events forward til non left | |
Gtk.main_iteration while Gtk.events_pending? | |
# check non are left | |
p Gtk.events_pending? | |
#=> false (good) | |
# wait a minute | |
sleep 0.3 | |
# check there are still no events. | |
p Gtk.events_pending? | |
#=> true (what?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment