[rhel7 3/3] Turn spinner back on for configuration (#1019970)

Brian C. Lane bcl at redhat.com
Fri Oct 18 22:03:22 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

Some tasks, like rebuilding the initrd, take long enough that the
spinner is helpful.

Related: rhbz#1019970
---
 pyanaconda/ui/gui/hubs/progress.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/pyanaconda/ui/gui/hubs/progress.py b/pyanaconda/ui/gui/hubs/progress.py
index b22d91a..3dbed22 100644
--- a/pyanaconda/ui/gui/hubs/progress.py
+++ b/pyanaconda/ui/gui/hubs/progress.py
@@ -66,6 +66,8 @@ class ProgressHub(Hub):
         if reenable_ransom:
             self._start_ransom_notes()
 
+        self._restart_spinner()
+
         self._progress_id = GLib.timeout_add(250, self._update_progress, self._configuration_done)
         threadMgr.add(AnacondaThread(name=THREAD_CONFIGURATION, target=doConfiguration,
                                      args=(self.storage, self.payload, self.data, self.instclass)))
@@ -267,6 +269,12 @@ class ProgressHub(Hub):
         gtk_call_once(self._progressLabel.set_text, message)
 
     @gtk_action_nowait
+    def _restart_spinner(self):
+        spinner = self.builder.get_object("progressSpinner")
+        spinner.show()
+        spinner.start()
+
+    @gtk_action_nowait
     def _progress_bar_complete(self):
         self._progressBar.set_fraction(1.0)
         self._progressLabel.set_text(_("Complete!"))
-- 
1.8.3.1



More information about the anaconda-patches mailing list