details: Remove explicit video heads and ram reporting
RAM is rarely changed from the default heads does not have any explicit virt-manager support and both are viewable from the XML editor. So remove the explicit fields for them Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
9b5d9eb9eb
commit
ba33a6c99d
|
@ -3846,56 +3846,6 @@
|
|||
<property name="top_attach">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label17">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="halign">end</property>
|
||||
<property name="label" translatable="yes">RAM:</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
<property name="top_attach">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="video-ram">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="halign">start</property>
|
||||
<property name="label">label</property>
|
||||
<property name="selectable">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="top_attach">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label25">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="halign">end</property>
|
||||
<property name="label" translatable="yes">Heads:</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
<property name="top_attach">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="video-heads">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="halign">start</property>
|
||||
<property name="label">label</property>
|
||||
<property name="selectable">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="top_attach">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label9">
|
||||
<property name="visible">True</property>
|
||||
|
@ -3907,7 +3857,7 @@
|
|||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
<property name="top_attach">3</property>
|
||||
<property name="top_attach">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
|
@ -3920,7 +3870,7 @@
|
|||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="top_attach">3</property>
|
||||
<property name="top_attach">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
|
|
|
@ -2239,19 +2239,6 @@ class vmmDetails(vmmGObjectUI):
|
|||
|
||||
def _refresh_video_page(self, vid):
|
||||
model = vid.model
|
||||
if model == "qxl" and vid.vgamem:
|
||||
ram = vid.vgamem
|
||||
else:
|
||||
ram = vid.vram
|
||||
heads = vid.heads
|
||||
try:
|
||||
ramlabel = ram and "%d MiB" % (int(ram) // 1024) or "-"
|
||||
except Exception: # pragma: no cover
|
||||
ramlabel = "-"
|
||||
|
||||
self.widget("video-ram").set_text(ramlabel)
|
||||
self.widget("video-heads").set_text(heads and str(heads) or "-")
|
||||
|
||||
uiutil.set_list_selection(self.widget("video-model"), model)
|
||||
|
||||
if vid.accel3d is None:
|
||||
|
|
Loading…
Reference in New Issue