List all VM graphics devices (since libvirt supports more than 1 now)

This commit is contained in:
Cole Robinson 2009-07-14 19:47:18 -04:00
parent b3746d9623
commit 69b6bea472
2 changed files with 2 additions and 2 deletions

View File

@ -1822,7 +1822,7 @@ class vmmDetails(gobject.GObject):
# Add in row
if missing:
hw_list_model.insert(insertAt, [_("Display"), gtk.STOCK_SELECT_COLOR, gtk.ICON_SIZE_LARGE_TOOLBAR, None, HW_LIST_TYPE_GRAPHICS, gfxinfo])
hw_list_model.insert(insertAt, [_("Display %s") % gfxinfo[1].upper(), gtk.STOCK_SELECT_COLOR, gtk.ICON_SIZE_LARGE_TOOLBAR, None, HW_LIST_TYPE_GRAPHICS, gfxinfo])
# Populate list of sound devices
for soundinfo in self.vm.get_sound_devices():

View File

@ -875,7 +875,7 @@ class vmmDomain(gobject.GObject):
def get_graphics_devices(self):
def _parse_graphics_devs(ctx):
graphics = []
ret = ctx.xpathEval("/domain/devices/graphics[1]")
ret = ctx.xpathEval("/domain/devices/graphics")
for node in ret:
typ = node.prop("type")
listen = None