[PATCH 3/3] Busy cursor when applying changes in the custom spoke

Vratislav Podzimek vpodzime at redhat.com
Mon May 6 13:12:34 UTC 2013


It may take a while and using busied cursor improves user experience.

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/ui/gui/spokes/custom.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index de28fb6..4331942 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -73,6 +73,7 @@ from pyanaconda.ui.gui.spokes.lib.accordion import *
 from pyanaconda.ui.gui.spokes.lib.refresh import RefreshDialog
 from pyanaconda.ui.gui.spokes.lib.summary import ActionSummaryDialog
 from pyanaconda.ui.gui.utils import setViewportBackground, gtk_action_wait, enlightbox, fancy_set_sensitive
+from pyanaconda.ui.gui.utils import busied_cursor
 from pyanaconda.ui.gui.categories.storage import StorageCategory
 
 from gi.repository import Gtk
@@ -2708,7 +2709,11 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
 
     def on_apply_clicked(self, button):
         """ call _save_right_side, then, perhaps, populate_right_side. """
-        self._save_right_side(self._current_selector)
+
+        # may take a while
+        with busied_cursor():
+            self._save_right_side(self._current_selector)
+
         self._applyButton.set_sensitive(False)
 
     def on_unlock_clicked(self, button):
-- 
1.7.11.7



More information about the anaconda-patches mailing list