diff options
author | Simon Schampijer <simon@schampijer.de> | 2009-03-13 14:44:57 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2009-03-13 14:44:57 (GMT) |
commit | d5c5e376d2002453219a38c69330f3b9eee6ff23 (patch) | |
tree | 005e04deb9cb5ebf276fdae8dd65ecd8d2f8cbec | |
parent | c4dce659a4be7cbfe2376586e09e6a9c3d316794 (diff) |
Fix palettes scaling when using scaling factor 72 #504
-rw-r--r-- | src/sugar/graphics/palette.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py index ce551bb..919721b 100644 --- a/src/sugar/graphics/palette.py +++ b/src/sugar/graphics/palette.py @@ -162,7 +162,7 @@ class Palette(gtk.Window): primary_box.show() self._icon_box = gtk.HBox() - self._icon_box.set_size_request(style.zoom(style.GRID_CELL_SIZE), -1) + self._icon_box.set_size_request(style.GRID_CELL_SIZE, -1) primary_box.pack_start(self._icon_box, expand=False) labels_box = gtk.VBox() @@ -221,7 +221,7 @@ class Palette(gtk.Window): self.set_data('sugar-accel-group', accel_group) self.add_accel_group(accel_group) - primary_box.set_size_request(-1, style.zoom(style.GRID_CELL_SIZE) + primary_box.set_size_request(-1, style.GRID_CELL_SIZE - 2 * self.get_border_width()) @@ -463,7 +463,7 @@ class Palette(gtk.Window): 2 * self.get_border_width() requisition.width = max(requisition.width, - style.zoom(style.GRID_CELL_SIZE * 2), + style.GRID_CELL_SIZE * 2, label_width, self._full_request[0]) |