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,6 +189,7 @@ class Palette(PaletteWindow):
|
||||
|
||||
def __map_cb(self, *args):
|
||||
# Fixes #4463
|
||||
if hasattr(self._widget, 'present'):
|
||||
self._widget.present()
|
||||
|
||||
def __destroy_cb(self, palette):
|
||||
|
Loading…
Reference in New Issue
Block a user