Don't popdown the same control we are told to popup.

This commit is contained in:
Tomeu Vizoso 2007-03-16 14:28:25 +01:00
parent c0cd2cf9a6
commit 84dcb022cb

View File

@ -30,7 +30,7 @@ class PopupContext(gobject.GObject):
gobject.GObject.__init__(self)
def popped_up(self, control):
if self._active_control:
if self._active_control and self._active_control != control:
self._active_control.popdown()
self._active_control = control
self.emit('activated')