Merge branch 'master' of git+ssh://j5@dev.laptop.org/git/sugar

This commit is contained in:
John (J5) Palmieri 2007-08-10 12:59:17 -04:00
commit 9e87ca718c
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)