[Sugar-devel] [PATCH Speak] Remove KeepButton due to deprecation
Rafael Ortiz
rafael at activitycentral.com
Fri Jul 29 11:18:59 EDT 2011
On Wed, Jul 27, 2011 at 12:07 PM, <godiard at sugarlabs.org> wrote:
> From: Gonzalo Odiard <godiard at gmail.com>
>
> ---
> 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()
>
Thanks gonzalo applied as
http://git.sugarlabs.org/speak/mainline/commit/4a573fe5b5a64db64d957c4a3b3ba4dcb0e75326
<http://git.sugarlabs.org/speak/mainline/commit/4a573fe5b5a64db64d957c4a3b3ba4dcb0e75326>Will
be in speak's next version.
> --
> 1.7.4.4
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110729/3a0f1378/attachment.html>
More information about the Sugar-devel
mailing list