[Sugar-devel] [PATCH sugar-toolkit] Toolbox: replace the hippo based separator with a gtk.HSeparator
Benjamin Berg
benzea at sugarlabs.org
Fri Aug 12 07:13:29 EDT 2011
Hallo,
On Fri, 2011-08-12 at 10:47 +0200, simon at schampijer.de wrote:
> This makes the old-style Toolbar hippo free.
> [SNIP]
> + 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)
We could do the color setting and size request in the theme. But I am
fine with this.
Reviewed-by: Benjamin Berg <benjamin at sipsolutions.net
Benjamin
More information about the Sugar-devel
mailing list