From 892c61e63a0d2fc7bb5bd0c9b128228429ac57f5 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 8 Aug 2006 12:08:16 +0200 Subject: [PATCH] Publish and use title for the activities model --- shell/ActivitiesModel.py | 2 +- sugar/activity/Activity.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/ActivitiesModel.py b/shell/ActivitiesModel.py index 8a7ba687..af45b0de 100644 --- a/shell/ActivitiesModel.py +++ b/shell/ActivitiesModel.py @@ -16,7 +16,7 @@ class ActivityInfo: return self._service.get_type() def get_title(self): - return "FIXME Title" + return self._service.get_published_value('title') def get_service(self): return self._service diff --git a/sugar/activity/Activity.py b/sugar/activity/Activity.py index 9996120c..745a6c77 100644 --- a/sugar/activity/Activity.py +++ b/sugar/activity/Activity.py @@ -212,4 +212,6 @@ class Activity(gtk.Window): def share(self): """Called to request the activity to share itself on the network.""" - self._service = self._pservice.share_activity(self, self._default_type) + properties = { 'title' : self.get_title() } + self._service = self._pservice.share_activity(self, self._default_type, + properties)