mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virt-manager: Add controller model in details
This commit is contained in:
parent
df4dfd7362
commit
5b8e215e06
@ -3034,7 +3034,12 @@ class vmmDetails(vmmGObjectUI):
|
|||||||
return
|
return
|
||||||
|
|
||||||
type_label = virtinst.VirtualController.pretty_type(dev.type)
|
type_label = virtinst.VirtualController.pretty_type(dev.type)
|
||||||
|
model_label = dev.model
|
||||||
|
if not model_label:
|
||||||
|
model_label = _("Default")
|
||||||
|
|
||||||
self.widget("controller-type").set_text(type_label)
|
self.widget("controller-type").set_text(type_label)
|
||||||
|
self.widget("controller-model").set_text(model_label)
|
||||||
|
|
||||||
def refresh_filesystem_page(self):
|
def refresh_filesystem_page(self):
|
||||||
dev = self.get_hw_selection(HW_LIST_COL_DEVICE)
|
dev = self.get_hw_selection(HW_LIST_COL_DEVICE)
|
||||||
|
@ -5553,6 +5553,7 @@ I/O:</property>
|
|||||||
<widget class="GtkTable" id="table14">
|
<widget class="GtkTable" id="table14">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="n_columns">2</property>
|
<property name="n_columns">2</property>
|
||||||
|
<property name="n_rows">2</property>
|
||||||
<property name="column_spacing">6</property>
|
<property name="column_spacing">6</property>
|
||||||
<property name="row_spacing">6</property>
|
<property name="row_spacing">6</property>
|
||||||
<child>
|
<child>
|
||||||
@ -5577,6 +5578,34 @@ I/O:</property>
|
|||||||
<property name="y_options">GTK_FILL</property>
|
<property name="y_options">GTK_FILL</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkLabel" id="mlabel48">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label" translatable="yes">Model:</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="x_options">GTK_FILL</property>
|
||||||
|
<property name="y_options">GTK_FILL</property>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="right_attach">1</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="bottom_attach">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkLabel" id="controller-model">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label">foo</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="right_attach">2</property>
|
||||||
|
<property name="top_attach">1</property>
|
||||||
|
<property name="bottom_attach">2</property>
|
||||||
|
<property name="x_options">GTK_FILL</property>
|
||||||
|
<property name="y_options">GTK_FILL</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user