diff --git a/src/sugar3/graphics/palettewindow.py b/src/sugar3/graphics/palettewindow.py index 995e2581..5483ca1a 100644 --- a/src/sugar3/graphics/palettewindow.py +++ b/src/sugar3/graphics/palettewindow.py @@ -994,9 +994,9 @@ class Invoker(GObject.GObject): # menu item. We need to postpone destruction of the palette until # after all signals have propagated from the menu item to the # palette owner. - GObject.idle_add(lambda old_palette=self._palette: - old_palette.destroy(), - priority=GObject.PRIORITY_LOW) + GLib.idle_add(lambda old_palette=self._palette: + old_palette.destroy(), + priority=GObject.PRIORITY_LOW) self._palette = palette