details: show TPM version

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2018-06-08 17:42:43 -04:00 committed by Cole Robinson
parent 51919b9824
commit c802f2b3b8
2 changed files with 27 additions and 0 deletions

View File

@ -5445,6 +5445,30 @@
<property name="top_attach">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="tpm-version-label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Version:</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="tpm-version">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label">tpm-version</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
</packing>
</child>
</object>
</child>
</object>

View File

@ -249,6 +249,8 @@ def _label_for_device(dev):
label = _("TPM")
if dev.device_path:
label += (" %s" % dev.device_path)
else:
label += (" v%s" % dev.version)
return label
devmap = {
@ -2781,6 +2783,7 @@ class vmmDetails(vmmGObjectUI):
# Device type specific properties, only show if apply to the cur dev
show_ui("device_path")
show_ui("version")
def refresh_panic_page(self):
dev = self.get_hw_selection(HW_LIST_COL_DEVICE)