On Thu, 2014-01-30 at 15:58 -0500, Chris Lumens wrote:
> diff --git a/pyanaconda/ui/gui/hubs/progress.py
b/pyanaconda/ui/gui/hubs/progress.py
> index facbd2f..d1650d5 100644
> --- a/pyanaconda/ui/gui/hubs/progress.py
> +++ b/pyanaconda/ui/gui/hubs/progress.py
> @@ -100,15 +100,19 @@ class ProgressHub(Hub):
> elif code == progressQ.PROGRESS_CODE_MESSAGE:
> self._update_progress_message(args[0])
> elif code == progressQ.PROGRESS_CODE_COMPLETE:
> - # There shouldn't be any more progress bar updates, so return
False
> - # to indicate this method should be removed from the idle loop.
Also,
> - # stop the rnotes cycling and display the finished message.
> - self._progress_bar_complete()
> q.task_done()
>
> + # we are done, stop the progress indication
> + gtk_call_once(self._progressBar.set_fraction, 1.0)
> + gtk_call_once(self._progressLabel.set_text,
_("Complete!"))
> + gtk_call_once(self._spinner.stop)
> + gtk_call_once(self._spinner.hide)
> +
> if callback:
> callback()
>
> + # There shouldn't be any more progress bar updates, so return
False
> + # to indicate this method should be removed from the idle loop.
> return False
> elif code == progressQ.PROGRESS_CODE_QUIT:
> sys.exit(args[0])
Could this perhaps be the sort of thing that GtkActionList could be
handy for?
Good idea! Not on the rhel7-branch where it doesn't exist, but on
master, that will be a great example of usage.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic