[sulfur] fix askQuestion and inputBox

This commit is contained in:
Fabio Erculiani
2010-01-07 09:36:07 +01:00
parent 9fda9840d4
commit c0490929ac
+4
View File
@@ -383,6 +383,8 @@ class Equo(EquoInterface):
gobject.idle_add(do_ask)
while th_id not in self._mthread_rc['askQuestion']:
while gtk.events_pending(): # otherwise it won't work
gtk.main_iteration()
time.sleep(0.4)
return self._mthread_rc['askQuestion'].pop(th_id)
@@ -404,6 +406,8 @@ class Equo(EquoInterface):
gobject.idle_add(do_ask)
while th_id not in self._mthread_rc['inputBox']:
while gtk.events_pending(): # otherwise it won't work
gtk.main_iteration()
time.sleep(0.4)
return self._mthread_rc['inputBox'].pop(th_id)