[PATCH2, missing piece] Set progress bar to 100 % in a different way (#1058755)

Chris Lumens clumens at redhat.com
Thu Jan 30 20:58:06 UTC 2014


> 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?

- Chris


More information about the anaconda-patches mailing list