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()