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>
This commit is contained in:
Simon Schampijer
2012-10-22 18:45:02 +02:00
parent 1a8f89226b
commit 063e40d77d
+2
View File
@@ -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)