[virt-tools-list] [PATCH v2 5/5] virtManager: show the VM title in the manager window

Giuseppe Scrivano gscrivan at redhat.com
Tue Sep 24 17:06:34 UTC 2013


If a title is defined for a VM, append it to the name of the VM.

Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 virtManager/manager.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/virtManager/manager.py b/virtManager/manager.py
index ec86309..0edf255 100644
--- a/virtManager/manager.py
+++ b/virtManager/manager.py
@@ -646,7 +646,7 @@ class vmmManager(vmmGObjectUI):
             color = self._build_conn_color(conn)
             os_icon = None
         else:
-            name = vm.get_name()
+            name = vm.get_name_with_title()
             status = vm.run_status()
             markup = self._build_vm_markup(name, status)
             status_icon = vm.run_status_icon_name()
@@ -761,7 +761,7 @@ class vmmManager(vmmGObjectUI):
             return
 
         try:
-            name = vm.get_name()
+            name = vm.get_name_with_title()
             status = vm.run_status()
 
             row[ROW_SORT_KEY] = name
-- 
1.8.3.1




More information about the virt-tools-list mailing list