public ListPage(Notebook notebook, ModulesTreeInfo module) { this.notebook = notebook; this.module = module; headerbox = new HBox(); headerlabel = new Label(module.Text); headerbox.PackStart(headerlabel); //Image img = new Image("gtk-close", IconSize.Menu); close_img = ImageManager.GetImage("Images.close-button.png"); //close_img = new Image("gtk-close", IconSize.Menu); btnCloseTab = new Button(close_img); btnCloseTab.BorderWidth = 0; btnCloseTab.Relief = ReliefStyle.None; //btnCloseTab.WidthRequest = 19; //btnCloseTab.HeightRequest = 19; btnCloseTab.Clicked += delegate { this.Dispose(); }; headerbox.PackStart(btnCloseTab); headerbox.ShowAll(); tableview = new DataTableView(module); this.Add(tableview); this.ShowAll(); notebook.AppendPage(this, headerbox); notebook.SetTabReorderable(this, true); }