Publish and use title for the activities model

This commit is contained in:
Marco Pesenti Gritti 2006-08-08 12:08:16 +02:00
parent 2535a88645
commit 892c61e63a
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class ActivityInfo:
return self._service.get_type() return self._service.get_type()
def get_title(self): def get_title(self):
return "FIXME Title" return self._service.get_published_value('title')
def get_service(self): def get_service(self):
return self._service return self._service

View File

@ -212,4 +212,6 @@ class Activity(gtk.Window):
def share(self): def share(self):
"""Called to request the activity to share itself on the network.""" """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)