master
Crom (Thibaut CHARLES) 8 years ago
parent 99291fe235
commit 0653c35de5

@ -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();

Loading…
Cancel
Save