Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/frame/Frame.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-09-15 12:24:26 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-09-15 12:24:26 (GMT)
commit844216585a1d4e8f6ec9033a213d0d6cf1e1694a (patch)
tree05b45a88c55ba4641c3dcc3fa8474d15399400f1 /shell/view/frame/Frame.py
parent5f99dcf9a5375847c970cfd769b3c85b84cf66b0 (diff)
Pass around the shell so that groups can reuse the grid
Diffstat (limited to 'shell/view/frame/Frame.py')
-rw-r--r--shell/view/frame/Frame.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/shell/view/frame/Frame.py b/shell/view/frame/Frame.py
index 5ebeccc..9967a50 100644
--- a/shell/view/frame/Frame.py
+++ b/shell/view/frame/Frame.py
@@ -12,31 +12,29 @@ class Frame:
def __init__(self, shell):
self._windows = []
- shell_model = shell.get_model()
-
model = goocanvas.CanvasModelSimple()
root = model.get_root_item()
- grid = Grid()
+ grid = shell.get_grid()
bg = goocanvas.Rect(fill_color="#4f4f4f", line_width=0)
grid.set_constraints(bg, 0, 0, 80, 60)
root.add_child(bg)
- panel = BottomPanel(grid, shell_model)
+ panel = BottomPanel(shell)
grid.set_constraints(panel, 5, 55)
root.add_child(panel)
panel_window = PanelWindow(grid, model, 0, 55, 80, 5)
self._windows.append(panel_window)
- panel = TopPanel(grid, shell)
+ panel = TopPanel(shell)
root.add_child(panel)
panel_window = PanelWindow(grid, model, 0, 0, 80, 5)
self._windows.append(panel_window)
- panel = RightPanel(grid, shell_model)
+ panel = RightPanel(shell)
grid.set_constraints(panel, 75, 5)
root.add_child(panel)