Raise the palette window when its mapped
This patch raise the palette window when its mapped Its use: Gtk.Window.present [1] the user will be able to saw the palette now when your apply the test case of #4463 [1] https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-present Fixes #4463
This commit is contained in:
parent
7739336fb6
commit
ee564948bc
@ -184,6 +184,11 @@ class Palette(PaletteWindow):
|
|||||||
def _setup_widget(self):
|
def _setup_widget(self):
|
||||||
PaletteWindow._setup_widget(self)
|
PaletteWindow._setup_widget(self)
|
||||||
self._widget.connect('destroy', self.__destroy_cb)
|
self._widget.connect('destroy', self.__destroy_cb)
|
||||||
|
self._widget.connect('map', self.__map_cb)
|
||||||
|
|
||||||
|
def __map_cb(self, *args):
|
||||||
|
# Fixes #4463
|
||||||
|
self._widget.present()
|
||||||
|
|
||||||
def __destroy_cb(self, palette):
|
def __destroy_cb(self, palette):
|
||||||
self._secondary_anim.stop()
|
self._secondary_anim.stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user