public Gtk.Table RemovePanel(string name)
        {
            Gtk.Notebook notebook2 = new Gtk.Notebook();
            if (this.isRC)
            {
                notebook2 = this.rc.ChatTabs;
            }
            else
            {
                notebook2 = this.mw.ChatTabs;
            }

            foreach (object l in notebook2.AllChildren)
            {
                //Console.WriteLine("test: " + l.GetType());
                if (l.GetType() == typeof(Gtk.Table))
                {
                    Gtk.Table test = (Gtk.Table)l;
                    //this.WriteText("VPanedName: " + test.Name);
                    if (test.Name == name)
                    {
                        notebook2.Remove(test);
                        test.Dispose();
                    }
                }
            }
            return(null);
        }