Draw the background of the toolbox hbox
This commit is contained in:
parent
7b9c59fb9c
commit
b958a515d5
@ -1,6 +1,6 @@
|
|||||||
VERSION=0.63
|
VERSION=0.63
|
||||||
DATE=`date +%Y%m%d`
|
DATE=`date +%Y%m%d`
|
||||||
RELEASE=2.86
|
RELEASE=2.87
|
||||||
TARBALL=sugar-$VERSION-$RELEASE.${DATE}git.tar.bz2
|
TARBALL=sugar-$VERSION-$RELEASE.${DATE}git.tar.bz2
|
||||||
|
|
||||||
rm sugar-$VERSION.tar.bz2
|
rm sugar-$VERSION.tar.bz2
|
||||||
|
@ -34,6 +34,16 @@ class Toolbox(gtk.VBox):
|
|||||||
self._notebook.set_show_tabs(False)
|
self._notebook.set_show_tabs(False)
|
||||||
self.pack_start(self._notebook)
|
self.pack_start(self._notebook)
|
||||||
self._notebook.show()
|
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):
|
def add_toolbar(self, name, toolbar):
|
||||||
label = gtk.Label(name)
|
label = gtk.Label(name)
|
||||||
@ -42,7 +52,8 @@ class Toolbox(gtk.VBox):
|
|||||||
|
|
||||||
toolbar_box = gtk.HBox()
|
toolbar_box = gtk.HBox()
|
||||||
toolbar_box.pack_start(toolbar, True, True, units.grid_to_pixels(1))
|
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)
|
self._notebook.append_page(toolbar_box, label)
|
||||||
toolbar_box.show()
|
toolbar_box.show()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user