Don't draw the invoker rectangle for tooltips.
This commit is contained in:
parent
6573e8c5e6
commit
476189323d
@ -50,7 +50,7 @@ class RadioToolButton(gtk.RadioToolButton):
|
||||
self._palette.props.invoker = WidgetInvoker(self.child)
|
||||
|
||||
def do_expose_event(self, event):
|
||||
if self._palette:
|
||||
if self._palette and self._palette.props.draw_gap:
|
||||
if self._palette.is_up() or self.child.state == gtk.STATE_PRELIGHT:
|
||||
invoker = self._palette.props.invoker
|
||||
invoker.draw_invoker_rect(event, self._palette)
|
||||
|
@ -49,7 +49,7 @@ class ToggleToolButton(gtk.ToggleToolButton):
|
||||
self._palette.props.invoker = WidgetInvoker(self.child)
|
||||
|
||||
def do_expose_event(self, event):
|
||||
if self._palette:
|
||||
if self._palette and self._palette.props.draw_gap:
|
||||
if self._palette.is_up() or self.child.state == gtk.STATE_PRELIGHT:
|
||||
invoker = self._palette.props.invoker
|
||||
invoker.draw_invoker_rect(event, self._palette)
|
||||
|
@ -51,7 +51,7 @@ class ToolButton(gtk.ToolButton):
|
||||
self.set_palette(Palette(text))
|
||||
|
||||
def do_expose_event(self, event):
|
||||
if self._palette:
|
||||
if self._palette and self._palette.props.draw_gap:
|
||||
if self._palette.is_up() or self.child.state == gtk.STATE_PRELIGHT:
|
||||
invoker = self._palette.props.invoker
|
||||
invoker.draw_invoker_rect(event, self._palette)
|
||||
|
Loading…
Reference in New Issue
Block a user