Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit

This commit is contained in:
Marco Pesenti Gritti 2008-06-13 17:09:44 +02:00
commit 4762897239

View File

@ -51,7 +51,7 @@ class PresenceService(gobject.GObject):
'activity-invitation': (gobject.SIGNAL_RUN_FIRST, None, ([object]*3)),
'private-invitation': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
([gobject.TYPE_PYOBJECT, gobject.TYPE_PYOBJECT,
gobject.TYPE_PYOBJECT])),
gobject.TYPE_PYOBJECT, str])),
'activity-appeared': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
([gobject.TYPE_PYOBJECT])),
'activity-disappeared': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
@ -239,15 +239,15 @@ class PresenceService(gobject.GObject):
gobject.idle_add(self._emit_activity_invitation_signal, activity_path,
buddy_path, message)
def _emit_private_invitation_signal(self, bus_name, connection, channel):
def _emit_private_invitation_signal(self, bus_name, connection, channel, chan_type):
"""Emit GObject event with bus_name, connection and channel"""
self.emit('private-invitation', bus_name, connection, channel)
self.emit('private-invitation', bus_name, connection, channel, chan_type)
return False
def _private_invitation_cb(self, bus_name, connection, channel):
def _private_invitation_cb(self, bus_name, connection, channel, chan_type):
"""Callback for dbus event (forwards to method to emit GObject event)"""
gobject.idle_add(self._emit_private_invitation_signal, bus_name,
connection, channel)
connection, channel, chan_type)
def _emit_activity_appeared_signal(self, object_path):
"""Emit GObject event with presence.activity.Activity object"""