Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2011-08-17 15:58:22 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-08-17 16:04:47 (GMT)
commite022aa8e4acf1467454102664681880eb48e45ab (patch)
tree052849109bb7cabc50a9428532423befa2be9546
parent507dfecc095d8bfb6b832698b2a66c205562cd7f (diff)
Do not remove the Keep button completely, keep around for backward compatibility
In order to allow activities keeping their backward compatibility we keep the Keep button around but do not add it to the toolbar. This fixes activities that either remove or hide the Keep button or alter it in any other way. The Keep button is deprecated and we discourage the usage. Signed-off-by: Simon Schampijer <simon@laptop.org> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--src/sugar/activity/widgets.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sugar/activity/widgets.py b/src/sugar/activity/widgets.py
index 0c34a1f..e5c4063 100644
--- a/src/sugar/activity/widgets.py
+++ b/src/sugar/activity/widgets.py
@@ -265,6 +265,9 @@ class ActivityToolbar(gtk.Toolbar):
self.share.show()
self.insert(self.share, -1)
+ # DEPRECATED
+ self.keep = KeepButton(activity)
+
self.stop = StopButton(activity)
self.insert(self.stop, -1)
self.stop.show()