Better test table & headerS-clickable

master
Crom (Thibaut CHARLES) 8 years ago
parent b8d5aaa5f0
commit 0f090a9fb9
  1. 6
      source/app.d
  2. 9
      test.2da

@ -44,13 +44,17 @@ void main(string[] args)
tree.setEnableSearch(true);
tree.setModel(store);
tree.setProperty("enable-grid-lines", GtkTreeViewGridLines.VERTICAL);
tree.setProperty("tooltip-column", 0);
tree.setProperty("reorderable", true);
tree.setProperty("headers-clickable", true);
foreach(index, s ; twoda.header){
CellRendererText cr;
if(index==0){
cr = new CellRendererText();
cr.setProperty("editable", true);
cr.setProperty("editable", false);
cr.setProperty("background-rgba", cast(ulong)(new GdkRGBA(0.36, 0.13, 0.4, 1.0)));
cr.setProperty("background-set", true);
}

@ -1,4 +1,5 @@
id name value
0 test testvalue0
1 test1 testvalue1
2 "Test Multiword" "Ddeedz fdes s fesq qs g sfddtrs"
id name name_strref description script
0 "veille nocturne" 1 "se rend invincible pendant un tour" _
1 "coup de crépière" 2 "inflige 25 pv de dégats à un personnage" _
2 "goulée de cidre" 3 "soigne un personnage de 50 PV" _
3 "omelette aux champignons" 4 "rend un personnage malade pendant un tour, ne peux ni parler, ni rien faire pendant un tour" _

Loading…
Cancel
Save