Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-05-18 11:32:50 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-05-18 11:32:50 (GMT)
commitb958a515d546af130da793ff311d7b99b43fab8f (patch)
treed0f592995fed20edb03c27983d13e996ebf9cc44
parent7b9c59fb9c673128a298d06ab675113f438f402b (diff)
Draw the background of the toolbox hbox
-rwxr-xr-xbuild-snapshot.sh2
-rw-r--r--sugar/graphics/toolbox.py13
2 files changed, 13 insertions, 2 deletions
diff --git a/build-snapshot.sh b/build-snapshot.sh
index 812d8ac..9606dc0 100755
--- a/build-snapshot.sh
+++ b/build-snapshot.sh
@@ -1,6 +1,6 @@
VERSION=0.63
DATE=`date +%Y%m%d`
-RELEASE=2.86
+RELEASE=2.87
TARBALL=sugar-$VERSION-$RELEASE.${DATE}git.tar.bz2
rm sugar-$VERSION.tar.bz2
diff --git a/sugar/graphics/toolbox.py b/sugar/graphics/toolbox.py
index 17b1b5f..0bfc037 100644
--- a/sugar/graphics/toolbox.py
+++ b/sugar/graphics/toolbox.py
@@ -34,6 +34,16 @@ class Toolbox(gtk.VBox):
self._notebook.set_show_tabs(False)
self.pack_start(self._notebook)
self._notebook.show()
+
+ def _toolbar_box_expose_cb(self, widget, event):
+ widget.style.paint_flat_box(widget.window,
+ gtk.STATE_NORMAL, gtk.SHADOW_NONE,
+ event.area, widget, 'toolbox',
+ widget.allocation.x,
+ widget.allocation.y,
+ widget.allocation.width,
+ widget.allocation.height)
+ return False
def add_toolbar(self, name, toolbar):
label = gtk.Label(name)
@@ -42,7 +52,8 @@ class Toolbox(gtk.VBox):
toolbar_box = gtk.HBox()
toolbar_box.pack_start(toolbar, True, True, units.grid_to_pixels(1))
-
+ toolbar_box.connect('expose-event', self._toolbar_box_expose_cb)
+
self._notebook.append_page(toolbar_box, label)
toolbar_box.show()