From 3e918fd7b9dbc3fe6458443137723bf9dfc63dbe Mon Sep 17 00:00:00 2001
From: Simon Schampijer <simon@laptop.org>
Date: Mon, 22 Oct 2012 18:45:02 +0200
Subject: [PATCH toolkit-gtk3] 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 SL #4065.
Signed-off-by: Simon Schampijer <simon@laptop.org>
---
src/sugar3/activity/widgets.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/sugar3/activity/widgets.py b/src/sugar3/activity/widgets.py
index c4015ce..9f6b3db 100644
a
|
b
|
class ActivityButton(ToolButton): |
60 | 60 | self.set_icon_widget(icon) |
61 | 61 | icon.show() |
62 | 62 | |
| 63 | self.palette_invoker.props.toggle_palette = True |
63 | 64 | self.props.tooltip = activity.metadata['title'] |
64 | 65 | activity.metadata.connect('updated', self.__jobject_updated_cb) |
65 | 66 | |