static void gtml_activate() { icons = new Gtk.IconFactory(); icons.AddDefault(); window = new Gtk.Window(PN); window.DeleteEvent += new DeleteEventHandler(Window_Delete); window.SetDefaultSize(800, 120); window.Decorated = true; grid = new Gtk.Grid(); grid.ColumnHomogeneous = true; Gtk.Image icon = new Gtk.Image(); icon.IconName = ("list-add-symbolic"); import_button = new Gtk.Button(icon); import_button.Clicked += new EventHandler(gtml_import_full); Gtk.Box naw = new Gtk.Box(Gtk.Orientation.Horizontal, 1); naw.PackStart(import_button, true, true, 1); naw.ShowAll(); stack = new Gtk.Notebook(); stack.EnablePopup = true; stack.GroupName = "Mozilla Programs"; stack.Scrollable = true; stack.SetActionWidget(naw, Gtk.PackType.End); stack.Hexpand = true; stack.Vexpand = true; grid.Attach(stack, 1, 1, 1, 1); gtml_reload(); window.Add(grid); window.ShowAll(); }