From 2e2db562c5faa21e623707ebe84e5e504df540d0 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 27 Feb 2007 13:56:00 +0100 Subject: [PATCH] Make the canvas window background transparent --- sugar/graphics/window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sugar/graphics/window.py b/sugar/graphics/window.py index f3854e35..1ff1fdbb 100644 --- a/sugar/graphics/window.py +++ b/sugar/graphics/window.py @@ -9,6 +9,10 @@ class Window(gtk.Window): self.add(self._canvas) self._canvas.show() + self._canvas.connect_after('realize', self._window_realize_cb) + def set_root(self, root): self._canvas.set_root(root) + def _window_realize_cb(self, canvas): + canvas.window.set_back_pixmap(None, False)