From 5313e73d0fd37d810845ce2f83da3124eb2b8bae Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Sat, 04 Jun 2011 20:40:33 +0000 Subject: Tell GTK that Palettes are pop-ups The Palettes are genuine client-managed pop-up windows. If we don't tell GTK about that, it won't set the override-redirect flag so the window manager will try to manage the window (placement, decorations, etc.) which naturally interferes with our management of the window (pop-up / -down). Signed-off-by: Sascha Silbe --- diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py index b77cd9d..5081893 100644 --- a/src/sugar/graphics/palettewindow.py +++ b/src/sugar/graphics/palettewindow.py @@ -155,7 +155,9 @@ class PaletteWindow(gtk.Window): self._popdown_anim = animator.Animator(0.6, 10) self._popdown_anim.add(_PopdownAnimation(self)) - gobject.GObject.__init__(self, **kwargs) + gtk.Window.__init__(self, type=gtk.WINDOW_POPUP) + for name, value in kwargs.items(): + setattr(self.props, name, value) self.set_decorated(False) self.set_resizable(False) -- cgit v0.9.1