Publish and use title for the activities model
This commit is contained in:
parent
2535a88645
commit
892c61e63a
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user