From 69bd6ba6bca1144ad458d26966c16e5f369ace80 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Tue, 26 Sep 2006 20:48:29 +0000 Subject: [PATCH] Fixed silly hack when forcing GTK event processing --- ChangeLog | 3 +++ gfceu | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 992f6566..c2ec1c9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +========================== version 0.5.2 ======================== +Cleanup: +* Fixed silly hack when forcing GTK event processing. ========================== version 0.5.1 ======================== Bug Fixes: * Updated chooser filters diff --git a/gfceu b/gfceu index fa9ea944..f5f823f6 100644 --- a/gfceu +++ b/gfceu @@ -274,11 +274,7 @@ def launch(passed, local=False): # os.system() is a blocker, so we must force # gtk to process our events. - # 20 iterations seems enough to me - # FIXME - # This seems like a bit of a dirty hack. - # Does anyone know of a more elegant solution? - for x in range(0,2): + while gtk.events_pending(): gtk.main_iteration_do() os.system(command)