Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2011-06-01 08:34:00 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-06-09 14:59:07 (GMT)
commitddb5da171542ac35d9af131a246a216a2b6d826e (patch)
treee504813ddfc475786615c193144764e1c922878d
parentc7dee06967eac64e18dc8c6d2b8121967f9dd4ed (diff)
Use the activity instance name when joining a shared activity SL #2872
When we join a shared activity we use the name of the shared activity as the title of the activity. As we set the activity metadata accordingly this will be visible in the activity toolbar, the Journal and the activity frame. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-By: Sascha Silbe <silbe@activitycentral.com>
-rw-r--r--src/sugar/activity/activity.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py
index 5156725..31827da 100644
--- a/src/sugar/activity/activity.py
+++ b/src/sugar/activity/activity.py
@@ -336,6 +336,8 @@ class Activity(Window, gtk.Container):
def _initialize_journal_object(self):
title = _('%s Activity') % get_bundle_name()
+ if self.shared_activity and self.shared_activity.props.name != title:
+ title = self.shared_activity.props.name
if self.shared_activity is not None:
icon_color = self.shared_activity.props.color