Toolbox: replace the hippo based separator with a gtk.HSeparator

This makes the old-style Toolbar hippo free.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Benjamin Berg <benzea@sugarlabs.org>
This commit is contained in:
Simon Schampijer 2011-08-12 10:42:28 +02:00
parent 17ec110798
commit 3f0822ab1a

View File

@ -21,7 +21,6 @@ STABLE.
import gtk
import gobject
import hippo
from sugar.graphics import style
@ -47,14 +46,10 @@ class Toolbox(gtk.VBox):
self.pack_start(self._notebook)
self._notebook.show()
# FIXME improve gtk.Notebook and do this in the theme
self._separator = 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)
self._separator.set_root(box)
self._separator = gtk.HSeparator()
self._separator.modify_bg(gtk.STATE_NORMAL,
style.COLOR_PANEL_GREY.get_gdk_color())
self._separator.set_size_request(1, style.TOOLBOX_SEPARATOR_HEIGHT)
self.pack_start(self._separator, False)
self._notebook.connect('notify::page', self._notify_page_cb)