[virt-tools-list] [PATCH 2/3] vmmDetails: toggle visibilities on	page change
    mzatko at redhat.com 
    mzatko at redhat.com
       
    Fri Feb 28 18:35:49 UTC 2014
    
    
  
From: Maros Zatko <mzatko at redhat.com>
---
 virtManager/details.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/virtManager/details.py b/virtManager/details.py
index 00e011e..7988504 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -1275,7 +1275,11 @@ class vmmDetails(vmmGObjectUI):
         finally:
             self.ignoreDetails = False
 
-    def switch_page(self, ignore1=None, ignore2=None, newpage=None):
+    def switch_page(self, notebook=None, ignore2=None, newpage=None):
+        for i in range(notebook.get_n_pages()):
+          w = notebook.get_nth_page(i)
+          w.set_visible(i == newpage)
+
         self.page_refresh(newpage)
 
         self.sync_details_console_view(newpage)
-- 
1.8.5.3
    
    
More information about the virt-tools-list
mailing list