public ChatWindow() : base(Gtk.WindowType.Toplevel) { this.Title = "#gnome-hackers on irc.gimp.net - Logopathy"; this.DeleteEvent += OnDeleteEvent; this.Table = new Gtk.Table(5, 5, false); this.Add(this.Table); this.ActionGroup = new Gtk.ActionGroup("General"); SetUpActionGroup(); UiManager = new Gtk.UIManager(); UiManager.InsertActionGroup(this.ActionGroup, 0); AddAccelGroup(UiManager.AccelGroup); SetUpUiManager(); this.MenuBar = UiManager.GetWidget("/MenuBar"); this.Table.Attach(this.MenuBar, 0, 5, 0, 1, Gtk.AttachOptions.Fill, Gtk.AttachOptions.Fill, 0, 0); MainPaned = new Gtk.HPaned(); this.Table.Attach(MainPaned, 0, 5, 1, 2); LeftSidebar = new Gtk.VPaned(); MainPaned.Pack1(LeftSidebar, true, true); ServerView = new Logopathy.Gui.ServerListView(); ServerViewSW = new Gtk.ScrolledWindow(new Gtk.Adjustment(0, 0, 0, 0, 0, 0), new Gtk.Adjustment(0, 0, 0, 0, 0, 0)); ServerViewSW.Add(ServerView); LeftSidebar.Pack1(ServerViewSW, true, true); UserView = new Logopathy.Gui.UserView(); UserViewSW = new Gtk.ScrolledWindow(new Gtk.Adjustment(0, 0, 0, 0, 0, 0), new Gtk.Adjustment(0, 0, 0, 0, 0, 0)); UserViewSW.Add(UserView); LeftSidebar.Pack2(UserViewSW, true, true); ChatNotebook = new Logopathy.Gui.ChatNotebook(new TpServer()); MainPaned.Pack2(ChatNotebook, true, true); }