mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
List all VM graphics devices (since libvirt supports more than 1 now)
This commit is contained in:
parent
b3746d9623
commit
69b6bea472
@ -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():
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user