Do not change arrow while opening palette in ToolbarBox

This commit is contained in:
Aleksey Lim 2009-07-31 03:58:52 +00:00
parent 353564f12c
commit 3dde9b68a5

View File

@ -87,10 +87,7 @@ class ToolbarButton(ToolButton):
def do_expose_event(self, event):
if not self.expanded_page or self.palette and self.palette.is_up():
ToolButton.do_expose_event(self, event)
if self.palette and self.palette.is_up():
_paint_arrow(self, event, gtk.ARROW_UP)
else:
_paint_arrow(self, event, gtk.ARROW_DOWN)
_paint_arrow(self, event, gtk.ARROW_DOWN)
return
alloc = self.allocation