virt-manager

changeset 1415:8360edbf1af6

manager: Don't 'pause' connection rows if collapsed

The paused vs. active state is unclear, and may suprise users by doing things
like closing child dialogs (VM details and New VM wizard).

Turning of polling is of only marginal benefit anyways, as most users prob
don't have multiple concurrent connections, and libvirt threading handles
most of the original performance concerns.
author Cole Robinson <crobinso@redhat.com>
date Tue Dec 01 20:42:00 2009 -0500 (2009-12-01)
parents f714530aff4f
children 28b190cf9efb
files src/virtManager/manager.py
line diff
     1.1 --- a/src/virtManager/manager.py	Tue Dec 01 20:38:13 2009 -0500
     1.2 +++ b/src/virtManager/manager.py	Tue Dec 01 20:42:00 2009 -0500
     1.3 @@ -176,8 +176,6 @@
     1.4              "on_menu_host_details_activate": self.show_host,
     1.5  
     1.6              "on_vm_list_row_activated": self.open_vm_console,
     1.7 -            "on_vm_list_row_expanded": self.row_expanded,
     1.8 -            "on_vm_list_row_collapsed": self.row_collapsed,
     1.9              "on_vm_list_button_press_event": self.popup_vm_menu_button,
    1.10              "on_vm_list_key_press_event": self.popup_vm_menu_key,
    1.11  
    1.12 @@ -750,14 +748,6 @@
    1.13              self.emit("action-migrate-domain",
    1.14                        vm.get_connection().get_uri(), vm.get_uuid())
    1.15  
    1.16 -    def row_expanded(self, treeview, _iter, path):
    1.17 -        conn = treeview.get_model().get_value(_iter, ROW_HANDLE)
    1.18 -        conn.resume()
    1.19 -
    1.20 -    def row_collapsed(self, treeview, _iter, path):
    1.21 -        conn = treeview.get_model().get_value(_iter, ROW_HANDLE)
    1.22 -        conn.pause()
    1.23 -
    1.24      def close_connection(self, ignore):
    1.25          conn = self.current_connection()
    1.26          if conn.get_state() != vmmConnection.STATE_DISCONNECTED: