Subtract the palette border from the primary label height.

This commit is contained in:
Benjamin Berg 2007-10-16 17:12:46 +02:00
parent 05236c6670
commit 977c7d4a99
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -1,3 +1,4 @@
* Correct the height of the primary palette (benzea)
* Use double leading underscores for callback names to avoid name collisions (erikos) * Use double leading underscores for callback names to avoid name collisions (erikos)
Snapshot 34e2271833 Snapshot 34e2271833

View File

@ -110,7 +110,8 @@ class Palette(gtk.Window):
vbox = gtk.VBox() vbox = gtk.VBox()
self._label = gtk.Label() self._label = gtk.Label()
self._label.set_size_request(-1, style.zoom(style.GRID_CELL_SIZE)) self._label.set_size_request(-1, style.zoom(style.GRID_CELL_SIZE)
- 2*self.get_border_width())
self._label.set_alignment(0, 0.5) self._label.set_alignment(0, 0.5)
self._label.set_padding(style.zoom(15), 0) self._label.set_padding(style.zoom(15), 0)
vbox.pack_start(self._label, False) vbox.pack_start(self._label, False)