Buttons as label when menu overflows, #5824
This commit is contained in:
parent
d08dcbf054
commit
39a0107e0a
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user