[PATCH] Turn spinner back on for configuration
Samantha N. Bueno
sbueno+anaconda at redhat.com
Fri Sep 27 12:32:15 UTC 2013
On Thu, Sep 26, 2013 at 02:03:21PM -0700, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
>
> Some tasks, like rebuilding the initrd, take long enough that the
> spinner is helpful.
> ---
> 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 e89f7cf..e052ff6 100644
> --- a/pyanaconda/ui/gui/hubs/progress.py
> +++ b/pyanaconda/ui/gui/hubs/progress.py
> @@ -68,6 +68,8 @@ class ProgressHub(Hub):
> if reenable_ransom:
> self._start_ransom_notes()
>
> + self._restart_spinner()
> +
> 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)))
> @@ -269,6 +271,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
Ack.
More information about the anaconda-patches
mailing list