[PATCH 1/2] Let the Gtk main loop switch the cursor in busied_cursor
Vratislav Podzimek
vpodzime at redhat.com
Tue May 7 11:50:08 UTC 2013
Unfortunately the Gtk/Gdk switches the cursor only when the Gtk main loop runs.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/ui/gui/utils.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pyanaconda/ui/gui/utils.py b/pyanaconda/ui/gui/utils.py
index 9aa6e3c..3863199 100644
--- a/pyanaconda/ui/gui/utils.py
+++ b/pyanaconda/ui/gui/utils.py
@@ -113,6 +113,9 @@ def unbusyCursor():
@contextmanager
def busied_cursor():
busyCursor()
+ # unfortunately the cursor is not changed until the Gtk main loop runs
+ while Gtk.events_pending():
+ Gtk.main_iteration()
yield
unbusyCursor()
--
1.7.11.7
More information about the anaconda-patches
mailing list