From 72d66793a73a3ca7924b09badb5d269b41d649a3 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 31 Jul 2007 13:21:09 +0000 Subject: Fix all the units except icon scales. --- (limited to 'shell/view/frame/framewindow.py') diff --git a/shell/view/frame/framewindow.py b/shell/view/frame/framewindow.py index 3fe544e..469ea65 100644 --- a/shell/view/frame/framewindow.py +++ b/shell/view/frame/framewindow.py @@ -17,7 +17,7 @@ import gtk import hippo -from sugar.graphics import units +from sugar.graphics import style class FrameWindow(gtk.Window): __gtype_name__ = 'SugarFrameWindow' @@ -48,7 +48,7 @@ class FrameWindow(gtk.Window): return self._bg def _update_size(self): - padding = units.grid_to_pixels(1) + padding = style.GRID_CELL_SIZE if self._orientation == hippo.ORIENTATION_HORIZONTAL: self._bg.props.padding_left = padding self._bg.props.padding_right = padding @@ -56,14 +56,14 @@ class FrameWindow(gtk.Window): self._bg.props.padding_bottom = 0 width = gtk.gdk.screen_width() - height = units.grid_to_pixels(1) + height = style.GRID_CELL_SIZE else: self._bg.props.padding_left = 0 self._bg.props.padding_right = 0 self._bg.props.padding_top = padding self._bg.props.padding_bottom = padding - width = units.grid_to_pixels(1) + width = style.GRID_CELL_SIZE height = gtk.gdk.screen_height() self.resize(width, height) -- cgit v0.9.1