Subject: vmmConsolePages: toggle visibilities on page change From: Maros Zatko mzatko@redhat.com Fri Feb 28 19:35:48 2014 +0100 Date: Fri Feb 28 14:29:48 2014 -0500: Git: dfa23765b569721effba959f35e5217aff908fea diff --git a/virtManager/console.py b/virtManager/console.py index 122bf27..dec2657 100644 --- a/virtManager/console.py +++ b/virtManager/console.py @@ -1319,8 +1319,13 @@ class vmmConsolePages(vmmGObjectUI): self.widget("details-menu-usb-redirection").set_sensitive(True) return - def page_changed(self, ignore1=None, ignore2=None, ignore3=None): + def page_changed(self, ignore1=None, ignore2=None, newpage=None): pagenum = self.widget("console-pages").get_current_page() + + for i in range(self.widget("console-pages").get_n_pages()): + w = self.widget("console-pages").get_nth_page(i) + w.set_visible(i == newpage) + if pagenum < CONSOLE_PAGE_OFFSET: self.last_gfx_page = pagenum self.set_allow_fullscreen()