Override menu shell deactivate to go through the palette.

This commit is contained in:
Marco Pesenti Gritti 2007-08-08 14:41:30 +02:00
parent 6ae3846415
commit 1145f0f99c

View File

@ -396,6 +396,9 @@ class _Menu(_sugaruiext.Menu):
_sugaruiext.Menu.do_insert(self, item, position) _sugaruiext.Menu.do_insert(self, item, position)
self._palette._update_separator() self._palette._update_separator()
def do_deactivate(self):
self._palette._hide()
class _PopupAnimation(animator.Animation): class _PopupAnimation(animator.Animation):
def __init__(self, palette): def __init__(self, palette):
animator.Animation.__init__(self, 0.0, 1.0) animator.Animation.__init__(self, 0.0, 1.0)