Add back the new-service-adv signal for the start page
This commit is contained in:
parent
a90071fef5
commit
91b68d4103
@ -70,7 +70,9 @@ class PresenceService(gobject.GObject):
|
|||||||
'buddy-disappeared': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
|
'buddy-disappeared': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
|
||||||
([gobject.TYPE_PYOBJECT])),
|
([gobject.TYPE_PYOBJECT])),
|
||||||
'activity-announced': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
|
'activity-announced': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
|
||||||
([gobject.TYPE_PYOBJECT, gobject.TYPE_PYOBJECT]))
|
([gobject.TYPE_PYOBJECT, gobject.TYPE_PYOBJECT])),
|
||||||
|
'new-service-adv': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
|
||||||
|
([gobject.TYPE_STRING, gobject.TYPE_STRING]))
|
||||||
}
|
}
|
||||||
|
|
||||||
__lock = threading.Lock()
|
__lock = threading.Lock()
|
||||||
@ -298,6 +300,9 @@ class PresenceService(gobject.GObject):
|
|||||||
# Decompose service type if we can
|
# Decompose service type if we can
|
||||||
(uid, short_stype) = Service._decompose_service_type(full_stype.encode())
|
(uid, short_stype) = Service._decompose_service_type(full_stype.encode())
|
||||||
|
|
||||||
|
# FIXME: find a better way of letting the StartPage get everything
|
||||||
|
self.emit('new-service-adv', uid, short_stype)
|
||||||
|
|
||||||
# If we care about the service right now, resolve it
|
# If we care about the service right now, resolve it
|
||||||
resolve = False
|
resolve = False
|
||||||
if uid in self._allowed_activities:
|
if uid in self._allowed_activities:
|
||||||
|
Loading…
Reference in New Issue
Block a user