Buttons as label when menu overflows, #5824
This commit is contained in:
parent
d08dcbf054
commit
39a0107e0a
@ -49,6 +49,9 @@ class ToolButton(gtk.ToolButton):
|
|||||||
def set_tooltip(self, text):
|
def set_tooltip(self, text):
|
||||||
self.set_palette(Palette(text))
|
self.set_palette(Palette(text))
|
||||||
|
|
||||||
|
# Set label, shows up when toolbar overflows
|
||||||
|
self.set_label(text)
|
||||||
|
|
||||||
def do_expose_event(self, event):
|
def do_expose_event(self, event):
|
||||||
if self._palette and self._palette.is_up():
|
if self._palette and self._palette.is_up():
|
||||||
invoker = self._palette.props.invoker
|
invoker = self._palette.props.invoker
|
||||||
|
Loading…
Reference in New Issue
Block a user