diff options
author | Marco 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) |
commit | 72d66793a73a3ca7924b09badb5d269b41d649a3 (patch) | |
tree | 77c248c5ae5af6e8cd8752d4bc7894863daf1dab /shell/view/frame/framewindow.py | |
parent | 2ae2279d94cc890ec769bdd5952254da601e0754 (diff) |
Fix all the units except icon scales.
Diffstat (limited to 'shell/view/frame/framewindow.py')
-rw-r--r-- | shell/view/frame/framewindow.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |