Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/presence
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2006-06-23 02:42:29 (GMT)
committer Dan Williams <dcbw@redhat.com>2006-06-23 02:42:29 (GMT)
commitf2ef2a68477819f8337eb2c421127f2c719596d1 (patch)
tree3ed3152c73b2481c40a41cd4a6af4727740cd859 /sugar/presence
parentbe992586b1e0d849a732b44eed7047dd8be62501 (diff)
Make activities emit an ActivityShared dbus signal; and have the shell & presence window detect that and disable the 'share' button
Diffstat (limited to 'sugar/presence')
-rw-r--r--sugar/presence/PresenceService.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sugar/presence/PresenceService.py b/sugar/presence/PresenceService.py
index c379b85..9599025 100644
--- a/sugar/presence/PresenceService.py
+++ b/sugar/presence/PresenceService.py
@@ -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)