diff options
author | Simon Schampijer <simon@laptop.org> | 2013-02-15 13:02:17 (GMT) |
---|---|---|
committer | Ajay Garg <ajay@activitycentral.com> | 2013-02-16 05:10:53 (GMT) |
commit | 9c54d7440e762aa436472f37387f155fefb53004 (patch) | |
tree | ffcbf970d4f19f2097a7f781024182543e259f68 | |
parent | bb1aa827307e40f0017669163d9d08d83fb5a4bd (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>
Signed-off-by: Ajay Garg <ajay@activitycentral.com>
-rw-r--r-- | src/sugar/graphics/toggletoolbutton.py | 4 |
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) |