From 4a573fe5b5a64db64d957c4a3b3ba4dcb0e75326 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Wed, 27 Jul 2011 17:07:35 +0000 Subject: Remove KeepButton due to deprecation Signed-off-by: Rafael Ortiz --- (limited to 'toolkit/activity_widgets.py') 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 = '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() -- cgit v0.9.1