preferences: Remove old Interface confirm option

This hasn't been relevant since that UI was removed

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-01-25 20:34:08 -05:00
parent d410773af8
commit 0bf65e6ce8
4 changed files with 5 additions and 49 deletions

View File

@ -334,12 +334,6 @@
<description>Whether we require confirmation to remove a virtual device</description> <description>Whether we require confirmation to remove a virtual device</description>
</key> </key>
<key name="interface-power" type="b">
<default>true</default>
<summary>Confirm device interface start and stop</summary>
<description>Whether we require confirmation to start or stop a libvirt virtual interface</description>
</key>
<key name="unapplied-dev" type="b"> <key name="unapplied-dev" type="b">
<default>true</default> <default>true</default>
<summary>Confirm about unapplied device changes</summary> <summary>Confirm about unapplied device changes</summary>

View File

@ -902,7 +902,7 @@ Redirection:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
<property name="top_attach">4</property> <property name="top_attach">3</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -916,33 +916,6 @@ Redirection:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
<property name="top_attach">4</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label23">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">_Interface start/stop:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">prefs-confirm-interface</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">3</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="prefs-confirm-interface">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_prefs_confirm_interface_toggled" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property> <property name="top_attach">3</property>
</packing> </packing>
</child> </child>
@ -957,7 +930,7 @@ Redirection:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
<property name="top_attach">5</property> <property name="top_attach">4</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -970,7 +943,7 @@ Redirection:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
<property name="top_attach">5</property> <property name="top_attach">4</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -984,7 +957,7 @@ Redirection:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
<property name="top_attach">6</property> <property name="top_attach">5</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -998,7 +971,7 @@ Redirection:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
<property name="top_attach">6</property> <property name="top_attach">5</property>
</packing> </packing>
</child> </child>
</object> </object>

View File

@ -335,8 +335,6 @@ class vmmConfig(object):
return self.conf.get("/confirm/pause") return self.conf.get("/confirm/pause")
def get_confirm_removedev(self): def get_confirm_removedev(self):
return self.conf.get("/confirm/removedev") return self.conf.get("/confirm/removedev")
def get_confirm_interface(self):
return self.conf.get("/confirm/interface-power")
def get_confirm_unapplied(self): def get_confirm_unapplied(self):
return self.conf.get("/confirm/unapplied-dev") return self.conf.get("/confirm/unapplied-dev")
def get_confirm_delstorage(self): def get_confirm_delstorage(self):
@ -350,8 +348,6 @@ class vmmConfig(object):
self.conf.set("/confirm/pause", val) self.conf.set("/confirm/pause", val)
def set_confirm_removedev(self, val): def set_confirm_removedev(self, val):
self.conf.set("/confirm/removedev", val) self.conf.set("/confirm/removedev", val)
def set_confirm_interface(self, val):
self.conf.set("/confirm/interface-power", val)
def set_confirm_unapplied(self, val): def set_confirm_unapplied(self, val):
self.conf.set("/confirm/unapplied-dev", val) self.conf.set("/confirm/unapplied-dev", val)
def set_confirm_delstorage(self, val): def set_confirm_delstorage(self, val):

View File

@ -57,7 +57,6 @@ class vmmPreferences(vmmGObjectUI):
self.refresh_confirm_poweroff() self.refresh_confirm_poweroff()
self.refresh_confirm_pause() self.refresh_confirm_pause()
self.refresh_confirm_removedev() self.refresh_confirm_removedev()
self.refresh_confirm_interface()
self.refresh_confirm_unapplied() self.refresh_confirm_unapplied()
self.refresh_confirm_delstorage() self.refresh_confirm_delstorage()
@ -86,7 +85,6 @@ class vmmPreferences(vmmGObjectUI):
"on_prefs_confirm_poweroff_toggled": self.change_confirm_poweroff, "on_prefs_confirm_poweroff_toggled": self.change_confirm_poweroff,
"on_prefs_confirm_pause_toggled": self.change_confirm_pause, "on_prefs_confirm_pause_toggled": self.change_confirm_pause,
"on_prefs_confirm_removedev_toggled": self.change_confirm_removedev, "on_prefs_confirm_removedev_toggled": self.change_confirm_removedev,
"on_prefs_confirm_interface_toggled": self.change_confirm_interface,
"on_prefs_confirm_unapplied_toggled": self.change_confirm_unapplied, "on_prefs_confirm_unapplied_toggled": self.change_confirm_unapplied,
"on_prefs_confirm_delstorage_toggled": self.change_confirm_delstorage, "on_prefs_confirm_delstorage_toggled": self.change_confirm_delstorage,
"on_prefs_btn_keys_define_clicked": self.change_grab_keys, "on_prefs_btn_keys_define_clicked": self.change_grab_keys,
@ -308,9 +306,6 @@ class vmmPreferences(vmmGObjectUI):
def refresh_confirm_removedev(self): def refresh_confirm_removedev(self):
self.widget("prefs-confirm-removedev").set_active( self.widget("prefs-confirm-removedev").set_active(
self.config.get_confirm_removedev()) self.config.get_confirm_removedev())
def refresh_confirm_interface(self):
self.widget("prefs-confirm-interface").set_active(
self.config.get_confirm_interface())
def refresh_confirm_unapplied(self): def refresh_confirm_unapplied(self):
self.widget("prefs-confirm-unapplied").set_active( self.widget("prefs-confirm-unapplied").set_active(
self.config.get_confirm_unapplied()) self.config.get_confirm_unapplied())
@ -434,8 +429,6 @@ class vmmPreferences(vmmGObjectUI):
self.config.set_confirm_pause(src.get_active()) self.config.set_confirm_pause(src.get_active())
def change_confirm_removedev(self, src): def change_confirm_removedev(self, src):
self.config.set_confirm_removedev(src.get_active()) self.config.set_confirm_removedev(src.get_active())
def change_confirm_interface(self, src):
self.config.set_confirm_interface(src.get_active())
def change_confirm_unapplied(self, src): def change_confirm_unapplied(self, src):
self.config.set_confirm_unapplied(src.get_active()) self.config.set_confirm_unapplied(src.get_active())
def change_confirm_delstorage(self, src): def change_confirm_delstorage(self, src):