Misc fixes

This commit is contained in:
Crom (Thibaut CHARLES) 2014-11-17 00:05:09 +01:00
parent 99291fe235
commit 0653c35de5

View File

@ -30,10 +30,12 @@ void main(string[] args)
Main.init(args);
auto window = new MainWindow("Test");
auto window = new MainWindow("2DA-Edit");
auto store = new ListStore([GType.STRING,GType.STRING,GType.STRING]);
GType type[];
foreach(i;0..twoda.header.length)type~=GType.STRING;
auto store = new ListStore(type);
auto tree = new TreeView(store);
window.add(tree);
@ -46,9 +48,9 @@ void main(string[] args)
CellRenderer cr;
writeln(index);
if(index==0){
cr = new CellRendererSpinner();
cr.setProperty("pulse", 1);
cr.setProperty("active", true);
cr = new CellRendererSpin();
cr.setProperty("digits", 1);
cr.setProperty("editable", true);
}
else{
cr = new CellRendererText();