Hide palette group before immediate popup #1291

This commit is contained in:
Aleksey Lim 2009-09-10 07:48:20 +00:00
parent c69bbe3341
commit 868c9293ac
2 changed files with 5 additions and 1 deletions

View File

@ -83,6 +83,9 @@ class Group(gobject.GObject):
palette.popdown(immediate=True) palette.popdown(immediate=True)
def _palette_popup_cb(self, palette): def _palette_popup_cb(self, palette):
for i in self._palettes:
if i != palette:
i.popdown(immediate=True)
if not self._up: if not self._up:
self.emit('popup') self.emit('popup')
self._up = True self._up = True

View File

@ -371,7 +371,8 @@ class PaletteWindow(gtk.Window):
self.on_leave(event) self.on_leave(event)
def __show_cb(self, widget): def __show_cb(self, widget):
self._invoker.notify_popup() if self._invoker is not None:
self._invoker.notify_popup()
self._up = True self._up = True
self.emit('popup') self.emit('popup')