[virt-tools-list] [PATCH 1/2] addhardware: store device type in host-device treeview
Guannan Ren
gren at redhat.com
Mon Apr 22 17:45:31 UTC 2013
---
virtManager/addhardware.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index af36560..4c1d4ac 100644
--- a/virtManager/addhardware.py
+++ b/virtManager/addhardware.py
@@ -281,7 +281,7 @@ class vmmAddHardware(vmmGObjectUI):
# Host device list
# model = [ Description, nodedev name ]
host_dev = self.widget("host-device")
- host_dev_model = Gtk.ListStore(str, str)
+ host_dev_model = Gtk.ListStore(str, str, str)
host_dev.set_model(host_dev_model)
host_col = Gtk.TreeViewColumn()
@@ -577,7 +577,7 @@ class vmmAddHardware(vmmGObjectUI):
if dev.name == subdev.parent:
prettyname = dev.pretty_name(subdev)
- model.append([prettyname, dev.name])
+ model.append([prettyname, dev.name, devtype])
if len(model) == 0:
model.append([_("No Devices Available"), None])
--
1.8.1.4
More information about the virt-tools-list
mailing list