[Sugar-devel] [PATCH Stopwatch] Remove KeepButton due to deprecation

rafael ortiz dirakx at gmail.com
Tue Aug 2 18:35:04 EDT 2011


On 27/07/11 12:15, godiard at sugarlabs.org wrote:
> From: Gonzalo Odiard<godiard at gmail.com>
>
> ---
>   activity.py |    6 +-----
>   1 files changed, 1 insertions(+), 5 deletions(-)
>
> diff --git a/activity.py b/activity.py
> index 7a32a6d..88313e2 100644
> --- a/activity.py
> +++ b/activity.py
> @@ -48,7 +48,7 @@ class StopWatchActivity(Activity):
>           try:
>               from sugar.graphics.toolbarbox import ToolbarBox, ToolbarButton
>               from sugar.activity.widgets import ActivityToolbarButton, StopButton, \
> -                    ShareButton, KeepButton, TitleEntry, ActivityButton
> +                    ShareButton, TitleEntry, ActivityButton
>           except ImportError:
>               OLD_TOOLBAR = True
>
> @@ -70,10 +70,6 @@ class StopWatchActivity(Activity):
>               toolbar_box.toolbar.insert(share_button, -1)
>               share_button.show()
>
> -            keep_button = KeepButton(self)
> -            toolbar_box.toolbar.insert(keep_button, -1)
> -            keep_button.show()
> -
>               separator = gtk.SeparatorToolItem()
>               separator.props.draw = False
>               separator.set_expand(True)

Applied as

http://git.sugarlabs.org/stopwatch/stopwatch/commit/ac0f772d19b06f669afcedeb00ab7c9249bae4bd

will be in next version.

thanks


More information about the Sugar-devel mailing list