From 9c54d7440e762aa436472f37387f155fefb53004 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Fri, 15 Feb 2013 13:02:17 +0000 Subject: 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 Acked-by: Manuel QuiƱones Signed-off-by: Ajay Garg --- 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) -- cgit v0.9.1