aboutsummaryrefslogtreecommitdiff
path: root/src/ppm/modemproxy.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-04-16 18:00:07 +0200
committerGuido Günther <agx@sigxcpu.org>2011-04-25 23:22:56 +0200
commita6a74fd8d9e55d6827cfd8534cc1c6ad7fc2ee83 (patch)
tree3a088c5a7054a8d5e62967fb0ff2e2c9ea6940d8 /src/ppm/modemproxy.py
parent0e24147fb4a1f78e40048437301b0795b08eef49 (diff)
Use PyGI instead of pygtk
and switch to GTK+3
Diffstat (limited to 'src/ppm/modemproxy.py')
-rw-r--r--src/ppm/modemproxy.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ppm/modemproxy.py b/src/ppm/modemproxy.py
index 352b539..6d2e32f 100644
--- a/src/ppm/modemproxy.py
+++ b/src/ppm/modemproxy.py
@@ -19,7 +19,7 @@
import dbus
import dbus.glib
import dbus.service
-import gobject
+from gi.repository import GObject
class ModemError(Exception):
@@ -33,7 +33,7 @@ class ModemError(Exception):
return [False, True][self.msg.find("not enabled") != -1]
-class ModemManagerProxy(gobject.GObject):
+class ModemManagerProxy(GObject.GObject):
"""Interface to ModemManager DBus API
@ivar request: current pending request to ModemManager
@type request: string
@@ -50,9 +50,9 @@ class ModemManagerProxy(gobject.GObject):
__gsignals__ = {
# Emitted when we got the new account balance from the provider
- 'request-started': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
+ 'request-started': (GObject.SignalFlags.RUN_FIRST, None,
[object]),
- 'request-finished': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
+ 'request-finished': (GObject.SignalFlags.RUN_FIRST, None,
[object]),
}
@@ -159,4 +159,4 @@ class ModemManagerProxy(gobject.GObject):
def modem_disable(self, reply_func=None, error_func=None):
self._modem_enable(False)
-gobject.type_register(ModemManagerProxy)
+GObject.type_register(ModemManagerProxy)