details: Remove 'Current Allocation' memory label
Just use the 'Change allocation' spin box for reporting and changing.
This commit is contained in:
parent
b3eb187e73
commit
0143378d5b
|
@ -2065,13 +2065,11 @@ class vmmDetails(vmmGObjectUI):
|
|||
|
||||
def refresh_config_memory(self):
|
||||
host_mem_widget = self.window.get_widget("state-host-memory")
|
||||
vm_mem_widget = self.window.get_widget("state-vm-memory")
|
||||
host_mem = self.vm.get_connection().host_memory_size() / 1024
|
||||
vm_cur_mem = self.vm.get_memory() / 1024.0
|
||||
vm_max_mem = self.vm.maximum_memory() / 1024.0
|
||||
|
||||
host_mem_widget.set_text("%d MB" % (int(round(host_mem))))
|
||||
vm_mem_widget.set_text("%d MB" % int(round(vm_cur_mem)))
|
||||
|
||||
curmem = self.window.get_widget("config-memory").get_adjustment()
|
||||
maxmem = self.window.get_widget("config-maxmem").get_adjustment()
|
||||
|
|
|
@ -2593,26 +2593,15 @@ I/O:</property>
|
|||
<widget class="GtkTable" id="table6">
|
||||
<property name="visible">True</property>
|
||||
<property name="border_width">3</property>
|
||||
<property name="n_rows">4</property>
|
||||
<property name="n_rows">3</property>
|
||||
<property name="n_columns">2</property>
|
||||
<property name="column_spacing">6</property>
|
||||
<property name="row_spacing">6</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label309">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">1</property>
|
||||
<property name="label" translatable="yes">Current allocation:</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="x_options">GTK_FILL</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label60">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">1</property>
|
||||
<property name="label" translatable="yes">Change a_llocation:</property>
|
||||
<property name="label" translatable="yes">Current a_llocation:</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="mnemonic_widget">config-memory</property>
|
||||
</widget>
|
||||
|
@ -2645,8 +2634,6 @@ I/O:</property>
|
|||
<property name="label" translatable="yes">Total host memory:</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="top_attach">3</property>
|
||||
<property name="bottom_attach">4</property>
|
||||
<property name="x_options">GTK_FILL</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
|
@ -2658,22 +2645,6 @@ I/O:</property>
|
|||
<property name="label">2 GB</property>
|
||||
<property name="selectable">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
<property name="top_attach">3</property>
|
||||
<property name="bottom_attach">4</property>
|
||||
<property name="x_options">GTK_FILL</property>
|
||||
<property name="y_options"></property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="state-vm-memory">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label">200 MB</property>
|
||||
<property name="selectable">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="right_attach">2</property>
|
||||
|
|
Loading…
Reference in New Issue