From 3ac947391cf582174aa0a20b0b25b54e9de0c349 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 29 Aug 2006 00:18:35 +0200 Subject: [PATCH] Fix nast bug, don't construct multiple times! --- shell/panel/Panel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shell/panel/Panel.py b/shell/panel/Panel.py index cb9b4936..c43adb8f 100644 --- a/shell/panel/Panel.py +++ b/shell/panel/Panel.py @@ -28,6 +28,7 @@ class Panel(gtk.Window): gtk.Window.__init__(self) self._x = 0 self._y = 0 + self._constructed = False self._view = PanelView() self.add(self._view) @@ -61,7 +62,10 @@ class Panel(gtk.Window): def construct(self): self._view.construct(self._x, self._y) + self._constructed = True def show(self): gtk.Window.show(self) - self.construct() + + if not self._constructed: + self.construct()