Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@laptop.org>2013-02-15 13:02:17 (GMT)
committer Simon Schampijer <simon@laptop.org>2013-02-15 14:36:17 (GMT)
commit8b1c6a7fe4b677a07dbaeb2cc72d52af82672826 (patch)
tree71bed4cbb8ed3f0ceb03a79dd88974b8e159fbe2
parent04ea8445b7af4aa281ae5e9240780cd5ff49fdb7 (diff)
ToggleToolbutton: do hide the tooltip when clicked or touched
This is the same behaviour as for the RadioToolButton and the ToolButton. See 344c72a3beb599b76f3ac806c34b7727a258530b where we did the same for the RadioToolbutton. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel QuiƱones <manuq@laptop.org>
-rw-r--r--src/sugar/graphics/toggletoolbutton.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sugar/graphics/toggletoolbutton.py b/src/sugar/graphics/toggletoolbutton.py
index 012c2b0..9e1384d 100644
--- a/src/sugar/graphics/toggletoolbutton.py
+++ b/src/sugar/graphics/toggletoolbutton.py
@@ -88,4 +88,8 @@ class ToggleToolButton(gtk.ToggleToolButton):
gtk.ToggleToolButton.do_expose_event(self, event)
+ def do_clicked(self):
+ if self.palette:
+ self.palette.popdown(True)
+
palette = property(get_palette, set_palette)