From 063e40d77da2f46108b5000e9bc48cfb7d167d32 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Mon, 22 Oct 2012 18:45:02 +0200 Subject: [PATCH] ActivityButton: set the toggle_palette option to True MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Setting this option will popup the Palette on left click or tap and popdown the Palette if it is up. This functionality has been added with c4165967d5e05607db8b3e0969b516da87855431. Signed-off-by: Simon Schampijer Acked-by: Manuel QuiƱones --- src/sugar3/activity/widgets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sugar3/activity/widgets.py b/src/sugar3/activity/widgets.py index c4015cee..0d9c9e29 100644 --- a/src/sugar3/activity/widgets.py +++ b/src/sugar3/activity/widgets.py @@ -60,6 +60,8 @@ class ActivityButton(ToolButton): self.set_icon_widget(icon) icon.show() + self.props.hide_tooltip_on_click = False + self.palette_invoker.props.toggle_palette = True self.props.tooltip = activity.metadata['title'] activity.metadata.connect('updated', self.__jobject_updated_cb)