diff options
author | Simon Schampijer <simon@laptop.org> | 2012-10-22 16:45:02 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2012-10-23 09:29:02 (GMT) |
commit | 063e40d77da2f46108b5000e9bc48cfb7d167d32 (patch) | |
tree | f025e06082b9a08789a5645f106f58d15a0bfd98 | |
parent | 1a8f89226b4f979000d80edc7123b7d22b23dc91 (diff) |
ActivityButton: set the toggle_palette option to True
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 <simon@laptop.org>
Acked-by: Manuel QuiƱones <manuq@laptop.org>
-rw-r--r-- | src/sugar3/activity/widgets.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sugar3/activity/widgets.py b/src/sugar3/activity/widgets.py index c4015ce..0d9c9e2 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) |