Palettes based in GtkMenu do not have present() method
There are two different palette widgets in Sugar. _PaletteMenuWidget is a Gtk.Menu and _PaletteWindowWidget is a Gtk.Window. Only the palettes where the widget is a Gtk.Window can do present()
This commit is contained in:
parent
5818721818
commit
2186c53aeb
@ -189,7 +189,8 @@ class Palette(PaletteWindow):
|
|||||||
|
|
||||||
def __map_cb(self, *args):
|
def __map_cb(self, *args):
|
||||||
# Fixes #4463
|
# Fixes #4463
|
||||||
self._widget.present()
|
if hasattr(self._widget, 'present'):
|
||||||
|
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