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 <mpg@redhat.com>2007-07-31 13:21:09 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-07-31 13:21:09 (GMT)
commit72d66793a73a3ca7924b09badb5d269b41d649a3 (patch)
tree77c248c5ae5af6e8cd8752d4bc7894863daf1dab /shell/view/frame/frame.py
parent2ae2279d94cc890ec769bdd5952254da601e0754 (diff)
Fix all the units except icon scales.
Diffstat (limited to 'shell/view/frame/frame.py')
-rw-r--r--shell/view/frame/frame.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/shell/view/frame/frame.py b/shell/view/frame/frame.py
index 2a94754..1c4680e 100644
--- a/shell/view/frame/frame.py
+++ b/shell/view/frame/frame.py
@@ -21,7 +21,7 @@ import gobject
import hippo
from sugar.graphics import animator
-from sugar.graphics import units
+from sugar.graphics import style
from sugar.graphics import palettegroup
from sugar.clipboard import clipboardservice
@@ -271,20 +271,16 @@ class Frame(object):
screen_w = gtk.gdk.screen_width()
self._move_panel(self._top_panel, self._current_position,
- 0, units.grid_to_pixels(-1),
- 0, 0)
+ 0, - style.GRID_CELL_SIZE, 0, 0)
self._move_panel(self._bottom_panel, self._current_position,
- 0, screen_h,
- 0, screen_h - units.grid_to_pixels(1))
+ 0, screen_h, 0, screen_h - style.GRID_CELL_SIZE)
self._move_panel(self._left_panel, self._current_position,
- units.grid_to_pixels(-1), 0,
- 0, 0)
+ - style.GRID_CELL_SIZE, 0, 0, 0)
self._move_panel(self._right_panel, self._current_position,
- screen_w, 0,
- screen_w - units.grid_to_pixels(1), 0)
+ screen_w, 0, screen_w - style.GRID_CELL_SIZE, 0)
def _hide_completed_cb(self, animator):
self.mode = MODE_NONE