Add keep-in-journal button to the activity toolbar.

This commit is contained in:
Tomeu Vizoso 2007-06-22 14:11:39 +02:00
parent c3da64561f
commit c1d4f3ce7a

View File

@ -62,6 +62,11 @@ class ActivityToolbar(gtk.Toolbar):
self.insert(separator, -1) self.insert(separator, -1)
separator.show() separator.show()
self.save = ToolButton('document-save')
self.save.connect('clicked', self._save_clicked_cb)
self.insert(self.save, -1)
self.save.show()
self.share = ToolButton('stock-share-mesh') self.share = ToolButton('stock-share-mesh')
self.share.connect('clicked', self._share_clicked_cb) self.share.connect('clicked', self._share_clicked_cb)
self.insert(self.share, -1) self.insert(self.share, -1)
@ -84,6 +89,9 @@ class ActivityToolbar(gtk.Toolbar):
def _share_clicked_cb(self, button): def _share_clicked_cb(self, button):
self._activity.share() self._activity.share()
def _save_clicked_cb(self, button):
self._activity.save()
def _close_clicked_cb(self, button): def _close_clicked_cb(self, button):
self._activity.close() self._activity.close()
self._activity.destroy() self._activity.destroy()