diff options
Diffstat (limited to 'src/sugar3/presence/activity.py')
-rw-r--r-- | src/sugar3/presence/activity.py | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/sugar3/presence/activity.py b/src/sugar3/presence/activity.py index bd8220c..615df4b 100644 --- a/src/sugar3/presence/activity.py +++ b/src/sugar3/presence/activity.py @@ -26,7 +26,7 @@ from functools import partial import dbus from dbus import PROPERTIES_IFACE -import gobject +from gi.repository import GObject from telepathy.client import Channel from telepathy.interfaces import CHANNEL, \ CHANNEL_INTERFACE_GROUP, \ @@ -47,7 +47,7 @@ CONN_INTERFACE_BUDDY_INFO = 'org.laptop.Telepathy.BuddyInfo' _logger = logging.getLogger('sugar3.presence.activity') -class Activity(gobject.GObject): +class Activity(GObject.GObject): """UI interface for an Activity in the presence service Activities in the presence service represent your and other user's @@ -61,24 +61,24 @@ class Activity(gobject.GObject): joined """ __gsignals__ = { - 'buddy-joined': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, - ([gobject.TYPE_PYOBJECT])), - 'buddy-left': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, - ([gobject.TYPE_PYOBJECT])), - 'new-channel': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, - ([gobject.TYPE_PYOBJECT])), - 'joined': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, - ([gobject.TYPE_PYOBJECT, gobject.TYPE_PYOBJECT])), + 'buddy-joined': (GObject.SignalFlags.RUN_FIRST, None, + ([GObject.TYPE_PYOBJECT])), + 'buddy-left': (GObject.SignalFlags.RUN_FIRST, None, + ([GObject.TYPE_PYOBJECT])), + 'new-channel': (GObject.SignalFlags.RUN_FIRST, None, + ([GObject.TYPE_PYOBJECT])), + 'joined': (GObject.SignalFlags.RUN_FIRST, None, + ([GObject.TYPE_PYOBJECT, GObject.TYPE_PYOBJECT])), } __gproperties__ = { - 'id': (str, None, None, None, gobject.PARAM_READABLE), - 'name': (str, None, None, None, gobject.PARAM_READWRITE), - 'tags': (str, None, None, None, gobject.PARAM_READWRITE), - 'color': (str, None, None, None, gobject.PARAM_READWRITE), - 'type': (str, None, None, None, gobject.PARAM_READABLE), - 'private': (bool, None, None, True, gobject.PARAM_READWRITE), - 'joined': (bool, None, None, False, gobject.PARAM_READABLE), + 'id': (str, None, None, None, GObject.PARAM_READABLE), + 'name': (str, None, None, None, GObject.PARAM_READWRITE), + 'tags': (str, None, None, None, GObject.PARAM_READWRITE), + 'color': (str, None, None, None, GObject.PARAM_READWRITE), + 'type': (str, None, None, None, GObject.PARAM_READABLE), + 'private': (bool, None, None, True, GObject.PARAM_READWRITE), + 'joined': (bool, None, None, False, GObject.PARAM_READABLE), } def __init__(self, account_path, connection, room_handle=None, @@ -89,7 +89,7 @@ class Activity(gobject.GObject): if properties is None: properties = {} - gobject.GObject.__init__(self) + GObject.GObject.__init__(self) self._account_path = account_path self.telepathy_conn = connection @@ -469,14 +469,14 @@ class Activity(gobject.GObject): self.telepathy_text_chan.Close() -class _BaseCommand(gobject.GObject): +class _BaseCommand(GObject.GObject): __gsignals__ = { - 'finished': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, + 'finished': (GObject.SignalFlags.RUN_FIRST, None, ([object])), } def __init__(self): - gobject.GObject.__init__(self) + GObject.GObject.__init__(self) self.text_channel = None self.text_channel_group_flags = None |