mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-09 08:58:27 +03:00
details: Use 'Hypervisor default' description in more places (bz #1073521)
This commit is contained in:
parent
938060ae53
commit
55c8453d15
@ -272,7 +272,7 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
if self.conn.is_qemu():
|
||||
model.append(["virtio", "virtio"])
|
||||
else:
|
||||
model.append([None, "default"])
|
||||
model.append([None, _("Hypervisor default")])
|
||||
|
||||
# Char target name
|
||||
lst = self.widget("char-target-name")
|
||||
@ -681,7 +681,7 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
for m in virtinst.VirtualDisk.cache_types:
|
||||
model.append([m, m])
|
||||
|
||||
_iter = model.insert(0, [None, "default"])
|
||||
_iter = model.insert(0, [None, _("Hypervisor default")])
|
||||
combo.set_active_iter(_iter)
|
||||
|
||||
@staticmethod
|
||||
@ -697,7 +697,7 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
model.append([m, m])
|
||||
|
||||
if not no_default:
|
||||
model.append([None, "default"])
|
||||
model.append([None, _("Hypervisor default")])
|
||||
combo.set_active(0)
|
||||
|
||||
@staticmethod
|
||||
@ -709,7 +709,7 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
model.set_sort_column_id(1, Gtk.SortType.ASCENDING)
|
||||
|
||||
if not no_default:
|
||||
model.append([None, "default"])
|
||||
model.append([None, _("Hypervisor default")])
|
||||
combo.set_active(-1)
|
||||
|
||||
@staticmethod
|
||||
@ -739,22 +739,23 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
break
|
||||
|
||||
@staticmethod
|
||||
def populate_controller_model_combo(combo, controller_type, widget_name, add_default=False):
|
||||
def populate_controller_model_combo(combo, controller_type, widget_name,
|
||||
add_default=False):
|
||||
model = combo.get_model()
|
||||
model.clear()
|
||||
|
||||
if controller_type == virtinst.VirtualController.TYPE_USB:
|
||||
model.append(["default", "Default"])
|
||||
model.append(["default", _("Hypervisor default")])
|
||||
model.append(["ich9-ehci1", "USB 2"])
|
||||
model.append(["nec-xhci", "USB 3"])
|
||||
if widget_name is not None:
|
||||
widget_name.set_sensitive(False)
|
||||
elif controller_type == virtinst.VirtualController.TYPE_SCSI:
|
||||
model.append(["default", "Default"])
|
||||
model.append(["default", _("Hypervisor default")])
|
||||
model.append(["virtio-scsi", "VirtIO SCSI"])
|
||||
else:
|
||||
if add_default:
|
||||
model.append([None, "Default"])
|
||||
model.append([None, _("Hypervisor default")])
|
||||
uiutil.set_grid_row_visible(combo, False)
|
||||
if widget_name is not None:
|
||||
widget_name.set_sensitive(True)
|
||||
|
@ -2627,7 +2627,7 @@ class vmmDetails(vmmGObjectUI):
|
||||
model = Gtk.ListStore(str, str)
|
||||
combo.set_model(model)
|
||||
uiutil.set_combo_text_column(combo, 1)
|
||||
model.append([None, "default"])
|
||||
model.append([None, _("Hypervisor default")])
|
||||
model.append(["filtered", "filtered"])
|
||||
model.append(["unfiltered", "unfiltered"])
|
||||
|
||||
@ -3197,7 +3197,7 @@ class vmmDetails(vmmGObjectUI):
|
||||
for row in buses:
|
||||
busmodel.append(row)
|
||||
if not no_default:
|
||||
busmodel.append([None, "default"])
|
||||
busmodel.append([None, _("Hypervisor default")])
|
||||
|
||||
def populate_hw_list(self):
|
||||
hw_list_model = self.widget("hw-list").get_model()
|
||||
|
Loading…
x
Reference in New Issue
Block a user