namespace TACO.Widgets { using Gtk; using System; public class PartsNotebook : Gtk.Notebook { public PartsNotebook() { AddPanel(ConnectorManager.Instance); AddPanel(ThingieManager.Instance); } private void AddPanel(PartManager mgr) { Gtk.ScrolledWindow swin = new Gtk.ScrolledWindow(); swin.Show(); swin.ShadowType = Gtk.ShadowType.None; swin.SetPolicy(Gtk.PolicyType.Never, Gtk.PolicyType.Automatic); AppendPage(swin, new Label(mgr.Name)); PartsPanel panel = new PartsPanel(mgr); panel.Show(); swin.AddWithViewport(panel); } } }