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-07-24 17:19:04 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-07-24 17:22:35 (GMT)
commitd0a493e5326cf9b4c5cd6470242fd25665fdf1ed (patch)
tree7fbfd5766aa6a4dd0c685728bd048bef11914981
parent9d21fd7511af184e2ad45f5f63349e3f1c364a75 (diff)
Initialize window title with bundle name, OLPC #11037
I had to modify the patch slightly because of 0269f819761cfd803cf4d694298c8ab6a753e242, changes reviewed by Sascha. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-By: Simon Schampijer <simon@laptop.org> Reviewed-by: Sascha Silbe <silbe@activitycentral.com>
-rw-r--r--src/sugar/activity/activity.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py
index fce1a12..2c7d823 100644
--- a/src/sugar/activity/activity.py
+++ b/src/sugar/activity/activity.py
@@ -335,13 +335,17 @@ class Activity(Window, gtk.Container):
warn_if_none=False)
self._set_up_sharing(mesh_instance, share_scope)
+ if not create_jobject:
+ self.set_title(get_bundle_name())
+ return
+
if self.shared_activity is not None:
self._jobject.metadata['title'] = self.shared_activity.props.name
self._jobject.metadata['icon-color'] = \
self.shared_activity.props.color
- self.set_title(self._jobject.metadata['title'])
- self._jobject.metadata.connect('updated',
- self.__jobject_updated_cb)
+ self.set_title(self._jobject.metadata['title'])
+ self._jobject.metadata.connect('updated',
+ self.__jobject_updated_cb)
def _initialize_journal_object(self):
title = _('%s Activity') % get_bundle_name()