public DockItemContainer(DockFrame frame, DockItem item) { this.item = item; mainBox = new VBox(); Add(mainBox); mainBox.ResizeMode = Gtk.ResizeMode.Queue; mainBox.Spacing = 0; ShowAll(); mainBox.PackStart(item.GetToolbar(PositionType.Top).Container, false, false, 0); HBox hbox = new HBox(); hbox.Show(); hbox.PackStart(item.GetToolbar(PositionType.Left).Container, false, false, 0); contentBox = new HBox(); contentBox.Show(); hbox.PackStart(contentBox, true, true, 0); hbox.PackStart(item.GetToolbar(PositionType.Right).Container, false, false, 0); mainBox.PackStart(hbox, true, true, 0); mainBox.PackStart(item.GetToolbar(PositionType.Bottom).Container, false, false, 0); }
public DockItemContainer (DockFrame frame, DockItem item) { this.item = item; mainBox = new VBox (); Add (mainBox); mainBox.ResizeMode = Gtk.ResizeMode.Queue; mainBox.Spacing = 0; ShowAll (); mainBox.PackStart (item.GetToolbar (PositionType.Top).Container, false, false, 0); HBox hbox = new HBox (); hbox.Show (); hbox.PackStart (item.GetToolbar (PositionType.Left).Container, false, false, 0); contentBox = new HBox (); contentBox.Show (); hbox.PackStart (contentBox, true, true, 0); hbox.PackStart (item.GetToolbar (PositionType.Right).Container, false, false, 0); mainBox.PackStart (hbox, true, true, 0); mainBox.PackStart (item.GetToolbar (PositionType.Bottom).Container, false, false, 0); }
void UpdateVisualStyle() { if (VisualStyle != null) { if (widget != null) { SetTreeStyle(widget); } item.GetToolbar(PositionType.Top).SetStyle(VisualStyle); item.GetToolbar(PositionType.Left).SetStyle(VisualStyle); item.GetToolbar(PositionType.Right).SetStyle(VisualStyle); item.GetToolbar(PositionType.Bottom).SetStyle(VisualStyle); } }