diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-07-27 17:07:35 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2011-07-29 15:12:09 (GMT) |
commit | 4a573fe5b5a64db64d957c4a3b3ba4dcb0e75326 (patch) | |
tree | d25f7053f3ecd1f89af1d17d19ec3a2239c74338 /toolkit/activity_widgets.py | |
parent | ae61c8b3aa3fbb40fe7f27c6f2b6e23d8f99d1d2 (diff) |
Remove KeepButton due to deprecation
Signed-off-by: Rafael Ortiz <rafael@activitycentral.com>
Diffstat (limited to 'toolkit/activity_widgets.py')
-rw-r--r-- | toolkit/activity_widgets.py | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/toolkit/activity_widgets.py b/toolkit/activity_widgets.py index 50e2c6c..ce1007e 100644 --- a/toolkit/activity_widgets.py +++ b/toolkit/activity_widgets.py @@ -159,24 +159,6 @@ class ShareButton(RadioMenuButton): self.neighborhood.handler_unblock(self._neighborhood_handle) -class KeepButton(ToolButton): - - def __init__(self, activity, **kwargs): - ToolButton.__init__(self, **kwargs) - self.props.tooltip = _('Keep') - self.props.accelerator = '<Ctrl>S' - - color = profile.get_color() - keep_icon = Icon(icon_name='document-save', xo_color=color) - keep_icon.show() - - self.set_icon_widget(keep_icon) - self.connect('clicked', self.__keep_button_clicked_cb, activity) - - def __keep_button_clicked_cb(self, button, activity): - activity.copy() - - class TitleEntry(gtk.ToolItem): def __init__(self, activity, **kwargs): @@ -222,7 +204,7 @@ class TitleEntry(gtk.ToolItem): class ActivityToolbar(gtk.Toolbar): """The Activity toolbar with the Journal entry title, sharing, - Keep and Stop buttons + and Stop buttons All activities should have this toolbar. It is easiest to add it to your Activity by using the ActivityToolbox. @@ -250,10 +232,6 @@ class ActivityToolbar(gtk.Toolbar): self.share.show() self.insert(self.share, -1) - self.keep = KeepButton(activity) - self.insert(self.keep, -1) - self.keep.show() - self.stop = StopButton(activity) self.insert(self.stop, -1) self.stop.show() |