[virt-tools-list] [PATCH virt-manager] virt-manager: correctly initialize the create pool wizard page number

Cole Robinson crobinso at redhat.com
Mon Dec 2 00:28:41 UTC 2013


On 11/27/2013 10:33 AM, Giuseppe Scrivano wrote:
> Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1034933
> 
> Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
> ---
>  virtManager/createpool.py | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/virtManager/createpool.py b/virtManager/createpool.py
> index d3ff55d..f98f84e 100644
> --- a/virtManager/createpool.py
> +++ b/virtManager/createpool.py
> @@ -60,6 +60,7 @@ class vmmCreatePool(vmmGObjectUI):
>          self.bind_escape_key_close()
>  
>          self.set_initial_state()
> +        self.set_page(PAGE_NAME)
>  
>      def show(self, parent):
>          logging.debug("Showing new pool wizard")
> @@ -430,7 +431,7 @@ class vmmCreatePool(vmmGObjectUI):
>          poolobj.setAutostart(True)
>          logging.debug("Pool creation succeeded")
>  
> -    def page_changed(self, notebook_ignore, page_ignore, page_number):
> +    def set_page(self, page_number):
>          # Update page number
>          page_lbl = ("<span color='#59B0E2'>%s</span>" %
>                      _("Step %(current_page)d of %(max_page)d") %
> @@ -450,6 +451,9 @@ class vmmCreatePool(vmmGObjectUI):
>          if islast:
>              self.show_options_by_pool()
>  
> +    def page_changed(self, notebook_ignore, page_ignore, page_number):
> +        self.set_page(page_number)
> +
>      def get_pool_to_validate(self):
>          """
>          Return a pool instance to use for parameter assignment validation.
> 

ACK

- Cole




More information about the virt-tools-list mailing list