[pyatspi2] Have registry.stop() quit the main loop when it is idle rather than immediately
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] Have registry.stop() quit the main loop when it is idle rather than immediately
- Date: Wed, 18 Aug 2010 00:39:52 +0000 (UTC)
commit cdc8a696724efc5c7745e4f507d2fd4acf4b660e
Author: Mike Gorse <mgorse novell com>
Date: Tue Aug 17 20:39:33 2010 -0400
Have registry.stop() quit the main loop when it is idle rather than immediately
Defer quitting the main loop to an idle. This ensures that queued events are
delivered.
pyatspi/registry.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pyatspi/registry.py b/pyatspi/registry.py
index 22bd637..bda8aac 100644
--- a/pyatspi/registry.py
+++ b/pyatspi/registry.py
@@ -218,7 +218,10 @@ class Registry(object):
"""
if not self.has_implementations:
self._set_default_registry ()
- self.main_loop.quit()
+ def main_quit():
+ self.main_loop.quit()
+ return False
+ gobject.idle_add(main_quit)
def getDesktopCount(self):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]