protected GtkWindow() { resizable = true; vbox = new Gtk.VBox(); actionvbox = new Gtk.VBox(); menuBox = new Gtk.HBox(); topToolbarBox = new Gtk.VBox(); containerBox = new GtkShrinkableVBox(); containerBox.Resizable = true; containerBox.Visible = true; bottomToolbarBox = new Gtk.VBox(); actionvbox.PackStart(menuBox, false, false, 0); actionvbox.PackStart(topToolbarBox, false, false, 0); vbox.PackStart(containerBox, true, true, 0); vbox.PackStart(bottomToolbarBox, false, false, 0); }
protected override void Dispose(bool disposing) { if (disposing) { Control.Destroy(); if (menuBox != null) { menuBox.Dispose(); menuBox = null; } if (vbox != null) { vbox.Dispose(); vbox = null; } if (containerBox != null) { containerBox.Dispose(); containerBox = null; } } base.Dispose(disposing); }