Make activities emit an ActivityShared dbus signal; and have the shell & presence window detect that and disable the 'share' button

This commit is contained in:
Dan Williams
2006-06-22 22:42:29 -04:00
parent be992586b1
commit f2ef2a6847
4 changed files with 68 additions and 5 deletions
+4
View File
@@ -492,6 +492,10 @@ class PresenceService(gobject.GObject):
# random port #
port = random.randint(5000, 65535)
# Mark the activity as shared
if stype == activity.default_type():
activity.set_shared()
logging.debug('Share activity %s, type %s, address %s, port %d, properties %s' % (actid, stype, address, port, properties))
service = Service.Service(name=real_name, stype=stype, domain="local",
address=address, port=port, properties=properties)