From 39a0107e0a94a8ce70162dd1beef092050c3da29 Mon Sep 17 00:00:00 2001 From: Reinier Heeres Date: Sat, 26 Jan 2008 16:00:30 +0100 Subject: [PATCH] Buttons as label when menu overflows, #5824 --- lib/sugar/graphics/toolbutton.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sugar/graphics/toolbutton.py b/lib/sugar/graphics/toolbutton.py index b4c8eb32..26acc836 100644 --- a/lib/sugar/graphics/toolbutton.py +++ b/lib/sugar/graphics/toolbutton.py @@ -48,6 +48,9 @@ class ToolButton(gtk.ToolButton): def set_tooltip(self, text): self.set_palette(Palette(text)) + + # Set label, shows up when toolbar overflows + self.set_label(text) def do_expose_event(self, event): if self._palette and self._palette.is_up():