I've no idea here...
[gtkD.git] / demos / duit / TestThemes.d
blob343794f4742c5c352b0f9317cf3c15aa42e6f7dc
1 /*
2 * This file is part of dui.
3 *
4 * dui is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
8 *
9 * dui is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with dui; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 module duit.TestThemes;
21 private import gtk.Window;
23 private import gtk.VBox;
24 private import gtk.ScrolledWindow;
25 private import gtk.Widget;
26 private import gtk.ComboBox;
27 private import gtk.ButtonBox;
28 private import gtk.HButtonBox;
29 private import gtk.Button;
31 class TestThemes : VBox
34 Window window;
35 ScrolledWindow sw;
37 this(Window window)
39 this.window = window;
40 debug(1)
42 printf("instantiating TestThemes\n");
45 super(false,8);
47 sw = new ScrolledWindow(null,null);
49 sw.addWithViewport(initTable());
51 ButtonBox hBox = HButtonBox.createActionBox();
53 packStart(sw,true,true,0);
54 packStart(hBox,false,false,0);
58 Widget initTable()
61 return new ComboBox();