[virt-tools-list] [RFC PATCH 08/10] libvirtobject: Remove gobject dep
Cole Robinson
crobinso at redhat.com
Mon Apr 18 18:06:50 UTC 2011
Use vmmGObject.signal_new for registering signals, which is a noop for TUI.
Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
src/virtManager/libvirtobject.py | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/src/virtManager/libvirtobject.py b/src/virtManager/libvirtobject.py
index 71632be..27190ff 100644
--- a/src/virtManager/libvirtobject.py
+++ b/src/virtManager/libvirtobject.py
@@ -18,8 +18,6 @@
# MA 02110-1301 USA.
#
-import gobject
-
import difflib
import logging
@@ -37,12 +35,6 @@ def _sanitize_xml(xml):
return xml
class vmmLibvirtObject(vmmGObject):
- __gsignals__ = {
- "config-changed": (gobject.SIGNAL_RUN_FIRST,
- gobject.TYPE_NONE,
- []),
- }
-
def __init__(self, connection):
vmmGObject.__init__(self)
self.connection = connection
@@ -150,4 +142,7 @@ class vmmLibvirtObject(vmmGObject):
origxml = self._xml_to_redefine()
return self._redefine_helper(origxml, newxml)
+
+vmmGObject.signal_new(vmmLibvirtObject, "config-changed", [])
+
vmmGObject.type_register(vmmLibvirtObject)
--
1.7.4
More information about the virt-tools-list
mailing list