mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Remove a few more unneeded gobject imports
This commit is contained in:
parent
efde9cb863
commit
1ca94861ae
@ -21,7 +21,6 @@
|
||||
import logging
|
||||
import traceback
|
||||
|
||||
import gobject
|
||||
import gtk
|
||||
|
||||
import virtinst
|
||||
@ -184,7 +183,7 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
def remove_timers(self):
|
||||
try:
|
||||
if self.host_storage_timer:
|
||||
gobject.source_remove(self.host_storage_timer)
|
||||
self.remove_gobject_timeout(self.host_storage_timer)
|
||||
self.host_storage_timer = None
|
||||
except:
|
||||
pass
|
||||
|
@ -18,13 +18,12 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
import gobject
|
||||
import gtk
|
||||
|
||||
import time
|
||||
import threading
|
||||
import logging
|
||||
|
||||
import gtk
|
||||
|
||||
import virtinst
|
||||
|
||||
import virtManager.uihelpers as uihelpers
|
||||
@ -179,7 +178,7 @@ class vmmCreate(vmmGObjectUI):
|
||||
def remove_timers(self):
|
||||
try:
|
||||
if self.host_storage_timer:
|
||||
gobject.source_remove(self.host_storage_timer)
|
||||
self.remove_gobject_timeout(self.host_storage_timer)
|
||||
self.host_storage_timer = None
|
||||
except:
|
||||
pass
|
||||
|
@ -18,13 +18,14 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
import gobject
|
||||
import gtk
|
||||
import libvirt
|
||||
import logging
|
||||
import traceback
|
||||
import os
|
||||
|
||||
import gtk
|
||||
|
||||
import libvirt
|
||||
|
||||
import virtManager.uihelpers as uihelpers
|
||||
from virtManager.storagebrowse import vmmStorageBrowser
|
||||
from virtManager.baseclass import vmmGObjectUI
|
||||
@ -584,8 +585,7 @@ class vmmDetails(vmmGObjectUI):
|
||||
def init_details(self):
|
||||
# Hardware list
|
||||
# [ label, icon name, icon size, hw type, hw data/class]
|
||||
hw_list_model = gtk.ListStore(str, str, int, int,
|
||||
gobject.TYPE_PYOBJECT)
|
||||
hw_list_model = gtk.ListStore(str, str, int, int, object)
|
||||
self.window.get_widget("hw-list").set_model(hw_list_model)
|
||||
|
||||
hwCol = gtk.TreeViewColumn("Hardware")
|
||||
|
Loading…
Reference in New Issue
Block a user