diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-01 11:50:18 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-01 11:50:18 (GMT) |
commit | f34e5fd36b2d6bf234cc8264a53916312a89201c (patch) | |
tree | ec3d27eecca2f8ed561637c6ec931e370c72c1c2 /sugar/graphics/toolbox.py | |
parent | c5f7f1d8af708471603985910773f4a9126ebe5b (diff) |
One cell grid of space at toolbar borders
Diffstat (limited to 'sugar/graphics/toolbox.py')
-rw-r--r-- | sugar/graphics/toolbox.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sugar/graphics/toolbox.py b/sugar/graphics/toolbox.py index 70cb051..86cae59 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) |