3 * Copyright (C) 2009-2010 troorl
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * troorl <troorl@gmail.com>
24 public class LogWindow : Window {
28 public LogWindow(string log) {
29 set_size_request(400, 400);
31 text_log = new TextView();
32 text_log.get_buffer().set_text(log, (int)log.size());
33 var scroll = new ScrolledWindow(null, null);
34 scroll.set_policy(PolicyType.AUTOMATIC, PolicyType.AUTOMATIC);
37 var vbox = new VBox(false, 0);
38 vbox.pack_start(scroll, true, true, 0);
40 var hbox = new HBox(false, 0);
41 hbox.pack_start(vbox, true, true, 0);