diff options
author | Sascha Silbe <silbe@activitycentral.com> | 2011-06-04 20:40:33 (GMT) |
---|---|---|
committer | Anish Mangal <anish@activitycentral.com> | 2012-04-27 10:04:45 (GMT) |
commit | 5313e73d0fd37d810845ce2f83da3124eb2b8bae (patch) | |
tree | a7cc8e233581d86eaf022c290d9e53edde5c9e2d | |
parent | c960f5f76a8b6a3f75e22fe89136de23d40fbe61 (diff) |
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 <silbe@activitycentral.com>
-rw-r--r-- | src/sugar/graphics/palettewindow.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |