* Corrected small things to make Circ-git compile from within MonoDevelop
[circ.git] / Circ.Frontend.GtkSharp / ChannelPanel.cs
blobd2c53024e7d3106d0a97f974b900e2d58ca61d44
1 #region License
2 /* Circ.Frontend.GtkSharp : GTK# frontend for Circ
3 * Copyright (C) 2007 LAVAL Jérémie
5 * This file is licensed under the terms of the LGPL.
7 * For the complete licence see the file COPYING.
8 */
9 #endregion
10 using System;
11 using Gtk;
12 using Circ.Frontend;
13 using Circ.Controller;
15 namespace Circ.Frontend.GtkSharp
17 public partial class ChannelPanel : Gtk.Bin
19 IChannelControl ctrl;
20 ServerPanel servPanel;
21 MessagesPanel messages;
22 UsersPanel users;
23 TextBuffer buffer;
25 public ChannelPanel(IServerPanel servPanel, IChannelControl ctrl)
28 this.ctrl = ctrl;
29 this.servPanel = (ServerPanel) servPanel;
31 Gtk.Application.Invoke( delegate {
32 this.messages = new MessagesPanel();
33 this.users = new UsersPanel();
34 this.buffer = messages.Buffer;
35 this.Build();
36 this.textWindow.Add(messages);
37 this.userWindow.Add(users);
39 this.ShowAll();
40 });