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 <si...@laptop.org>
---
 src/sugar/activity/activity.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py
index b8603c5..bb02ac0 100644
--- a/src/sugar/activity/activity.py
+++ b/src/sugar/activity/activity.py
@@ -338,6 +338,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
-- 
1.7.4

_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to