Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-09-05 12:23:17 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-09-05 12:23:17 (GMT)
commit5127901d860424f1badadcb118d378e3bf13ef4c (patch)
tree00eb9d69c63c149825ae6db2a281adc0931e49b6 /sugar
parent3723ccead4d70bc6df69b0265efd58a9b872a494 (diff)
Gray bottom border for Toolbox.
Diffstat (limited to 'sugar')
-rw-r--r--sugar/graphics/toolbox.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/sugar/graphics/toolbox.py b/sugar/graphics/toolbox.py
index c24f4f0..fa19cd4 100644
--- a/sugar/graphics/toolbox.py
+++ b/sugar/graphics/toolbox.py
@@ -17,6 +17,7 @@
import gtk
import gobject
+import hippo
from sugar.graphics.toolbutton import ToolButton
from sugar.graphics import style
@@ -42,10 +43,16 @@ class Toolbox(gtk.VBox):
self.pack_start(self._notebook)
self._notebook.show()
- label = gtk.Label('')
- label.set_size_request(-1, style.TOOLBOX_SEPARATOR_HEIGHT)
- self.pack_start(label, False)
- label.show()
+ # FIXME improve gtk.Notebook and do this in the theme
+ canvas = hippo.Canvas()
+ box = hippo.CanvasBox(
+ border_color=style.COLOR_BUTTON_GREY.get_int(),
+ background_color=style.COLOR_PANEL_GREY.get_int(),
+ box_height=style.TOOLBOX_SEPARATOR_HEIGHT,
+ border_bottom=style.LINE_WIDTH)
+ canvas.set_root(box)
+ self.pack_start(canvas, False)
+ canvas.show()
self._notebook.connect('notify::page', self._notify_page_cb)