Finally remove the keep button completely

see 0082e10f8e for
the complete reasoning.

e022aa8e4a already made the button
invisible, keeping it only for backwards compatibility.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-By: Sascha Silbe <silbe@activitycentral.com>
Acked-by: Daniel Drake <dsd@laptop.org>
master
Simon Schampijer 13 years ago
parent 6499ce596d
commit a8342ecf8c

@ -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()

Loading…
Cancel
Save