[Sugar-devel] [PATCH sugar-toolkit-gtk3] Finally remove the keep button completely

Simon Schampijer simon at schampijer.de
Thu Jan 5 04:39:51 EST 2012


see 0082e10f8ebc201d0837dc67ba739d9079903e45 for
the complete reasoning.

Signed-off-by: Simon Schampijer <simon at laptop.org>
---
 src/sugar3/activity/widgets.py |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)

diff --git a/src/sugar3/activity/widgets.py b/src/sugar3/activity/widgets.py
index 95fe0fc..999a080 100644
--- a/src/sugar3/activity/widgets.py
+++ b/src/sugar3/activity/widgets.py
@@ -163,28 +163,6 @@ class ShareButton(RadioMenuButton):
             self.neighborhood.handler_unblock(self._neighborhood_handle)
 
 
-# DEPRECATED
-class KeepButton(ToolButton):
-
-    def __init__(self, activity, **kwargs):
-        ToolButton.__init__(self, **kwargs)
-        logging.warning('KeepButton has been deprecated since Sugar 0.94'
-                        ' and should not be used in newly written code.')
-        self.props.tooltip = _('Keep')
-        self.props.accelerator = '<Ctrl>S'
-
-        client = GConf.Client.get_default()
-        color = XoColor(client.get_string('/desktop/sugar/user/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):
@@ -266,9 +244,6 @@ 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()
-- 
1.7.7.3



More information about the Sugar-devel mailing list