Don't draw the invoker rectangle for tooltips.

This commit is contained in:
Benjamin Berg 2007-08-10 18:52:15 +02:00
parent 6573e8c5e6
commit 476189323d
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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