From d5c5e376d2002453219a38c69330f3b9eee6ff23 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Fri, 13 Mar 2009 14:44:57 +0000 Subject: Fix palettes scaling when using scaling factor 72 #504 --- (limited to 'src/sugar') 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]) -- cgit v0.9.1