Hide palette group before immediate popup #1291
This commit is contained in:
parent
c69bbe3341
commit
868c9293ac
@ -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
|
||||||
|
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user