Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/frame/frameinvoker.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/frameinvoker.py
parent2ae2279d94cc890ec769bdd5952254da601e0754 (diff)
Fix all the units except icon scales.
Diffstat (limited to 'shell/view/frame/frameinvoker.py')
-rw-r--r--shell/view/frame/frameinvoker.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/view/frame/frameinvoker.py b/shell/view/frame/frameinvoker.py
index 64bc567..1b99d50 100644
--- a/shell/view/frame/frameinvoker.py
+++ b/shell/view/frame/frameinvoker.py
@@ -17,7 +17,7 @@
import gtk
-from sugar.graphics import units
+from sugar.graphics import style
from sugar.graphics.palette import Palette
from sugar.graphics.palette import CanvasInvoker
@@ -29,9 +29,10 @@ class FrameCanvasInvoker(CanvasInvoker):
return Palette.AROUND
def get_screen_area(self):
- x = units.grid_to_pixels(1)
- y = units.grid_to_pixels(1)
- width = gtk.gdk.screen_width() - units.grid_to_pixels(1)
- height = gtk.gdk.screen_height() - units.grid_to_pixels(1)
+ frame_thickness = style.zoom(75)
+
+ x = y = frame_thickness
+ width = gtk.gdk.screen_width() - frame_thickness
+ height = gtk.gdk.screen_height() - frame_thickness
return gtk.gdk.Rectangle(x, y, width, height)