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>
This commit is contained in:
parent
9d21fd7511
commit
d0a493e532
@ -335,6 +335,10 @@ class Activity(Window, gtk.Container):
|
|||||||
warn_if_none=False)
|
warn_if_none=False)
|
||||||
self._set_up_sharing(mesh_instance, share_scope)
|
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:
|
if self.shared_activity is not None:
|
||||||
self._jobject.metadata['title'] = self.shared_activity.props.name
|
self._jobject.metadata['title'] = self.shared_activity.props.name
|
||||||
self._jobject.metadata['icon-color'] = \
|
self._jobject.metadata['icon-color'] = \
|
||||||
|
Loading…
Reference in New Issue
Block a user