diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-03-13 20:26:33 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-03-13 20:26:33 (GMT) |
commit | 63cc9bb962fcb47aaa8c0b8a0a1982e92308703c (patch) | |
tree | 8dfcc6ab87f8b56bb4bb686b5f3f6831cf352032 /TurtleArt/tawindow.py | |
parent | 9b5d5cd2d5396d9746d2c4c23175112c45895c10 (diff) |
squeeze a bit more space out of toolbars when running in GNOME
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r-- | TurtleArt/tawindow.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 1564e0f..ebc1e3d 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -460,7 +460,7 @@ class TurtleArtWindow(): if not self.running_sugar: # offset = 2 * self.width - 55 * len(TOOLBAR_SHAPES) - offset = 55 * (2 + len(palette_blocks)) + offset = 55 * (1 + len(palette_blocks)) for i, name in enumerate(TOOLBAR_SHAPES): self.toolbar_shapes[name] = Sprite( self.sprite_list, i * 55 + offset, 0, @@ -936,7 +936,10 @@ class TurtleArtWindow(): ''' Create the palette selector buttons: only when running old-style Sugar toolbars or from GNOME ''' svg = SVG() - x, y = 50, 0 # positioned at the left, top + if self.running_sugar: + x, y = 50, 0 # positioned at the left, top + else: + x, y = 0, 0 for i, name in enumerate(palette_names): for path in self._icon_paths: if os.path.exists(os.path.join(path, '%soff.svg' % (name))): |