From f34e5fd36b2d6bf234cc8264a53916312a89201c Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 1 May 2007 13:50:18 +0200 Subject: [PATCH] One cell grid of space at toolbar borders --- sugar/graphics/toolbox.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sugar/graphics/toolbox.py b/sugar/graphics/toolbox.py index 70cb0517..86cae591 100644 --- a/sugar/graphics/toolbox.py +++ b/sugar/graphics/toolbox.py @@ -19,6 +19,7 @@ import gtk import gobject from sugar.graphics.toolbutton import ToolButton +from sugar.graphics import units _N_TABS = 8 @@ -38,7 +39,12 @@ class Toolbox(gtk.VBox): label = gtk.Label(name) label.set_size_request(gtk.gdk.screen_width() / _N_TABS, -1) label.set_alignment(0.0, 0.5) - self._notebook.append_page(toolbar, label) + + toolbar_box = gtk.HBox() + toolbar_box.pack_start(toolbar, True, True, units.grid_to_pixels(1)) + + self._notebook.append_page(toolbar_box, label) + toolbar_box.show() def remove_toolbar(self, index): self._notebook.remove_page(index)