diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-22 08:55:10 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-22 08:55:10 (GMT) |
commit | 5e55efe9d527ac1e5a557f07346915d6cfd1984e (patch) | |
tree | bbc0f1ae86366d5f2747173558f7b4c6c43e3b1c /shell | |
parent | 4d0dae0e35b7f317d998939106b31e3de6b97337 (diff) |
Get icon size from the handle. Remove the padding from
the zoom view icons and reorder them.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/view/frame/TopPanel.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/shell/view/frame/TopPanel.py b/shell/view/frame/TopPanel.py index 17dd13a..e8dc5c4 100644 --- a/shell/view/frame/TopPanel.py +++ b/shell/view/frame/TopPanel.py @@ -61,28 +61,28 @@ class TopPanel(goocanvas.Group): grid = shell.get_grid() - box = CanvasBox(grid, CanvasBox.HORIZONTAL, 1) + box = CanvasBox(grid, CanvasBox.HORIZONTAL) grid.set_constraints(box, 5, 0) self.add_child(box) - icon = IconItem(icon_name='stock-zoom-activity') - icon.connect('clicked', self._level_clicked_cb, sugar.ZOOM_ACTIVITY) - box.set_constraints(icon, 3, 3) - box.add_child(icon) - - icon = IconItem(icon_name='stock-zoom-home') - icon.connect('clicked', self._level_clicked_cb, sugar.ZOOM_HOME) - box.set_constraints(icon, 3, 3) + icon = IconItem(icon_name='stock-zoom-mesh') + icon.connect('clicked', self._level_clicked_cb, sugar.ZOOM_MESH) + box.set_constraints(icon, 5, 5) box.add_child(icon) icon = IconItem(icon_name='stock-zoom-friends') icon.connect('clicked', self._level_clicked_cb, sugar.ZOOM_FRIENDS) - box.set_constraints(icon, 3, 3) + box.set_constraints(icon, 5, 5) box.add_child(icon) - icon = IconItem(icon_name='stock-zoom-mesh') - icon.connect('clicked', self._level_clicked_cb, sugar.ZOOM_MESH) - box.set_constraints(icon, 3, 3) + icon = IconItem(icon_name='stock-zoom-home') + icon.connect('clicked', self._level_clicked_cb, sugar.ZOOM_HOME) + box.set_constraints(icon, 5, 5) + box.add_child(icon) + + icon = IconItem(icon_name='stock-zoom-activity') + icon.connect('clicked', self._level_clicked_cb, sugar.ZOOM_ACTIVITY) + box.set_constraints(icon, 5, 5) box.add_child(icon) self._box = box |