Buttons as label when menu overflows, #5824

This commit is contained in:
Reinier Heeres 2008-01-26 16:00:30 +01:00
parent d08dcbf054
commit 39a0107e0a

View File

@ -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():