[Sugar-devel] [PATCH Stopwatch] Remove KeepButton due to deprecation
godiard at sugarlabs.org
godiard at sugarlabs.org
Wed Jul 27 13:15:38 EDT 2011
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)
--
1.7.4.4
More information about the Sugar-devel
mailing list