From e022aa8e4acf1467454102664681880eb48e45ab Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Wed, 17 Aug 2011 17:58:22 +0200 Subject: [PATCH] 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 Reviewed-by: Gonzalo Odiard --- src/sugar/activity/widgets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sugar/activity/widgets.py b/src/sugar/activity/widgets.py index 0c34a1f9..e5c40635 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()