It creates two columns in the treeview, and then adds the text from the first and second columns of the liststore to the first and second columns of the treeview.
60 {
61 Gtk.TreeViewColumn coordCol = new Gtk.TreeViewColumn();
62 coordCol.Title = "Tool";
63 Gtk.CellRendererText coordCell = new Gtk.CellRendererText();
64 coordCol.PackStart(coordCell, true);
65
66 Gtk.TreeViewColumn expCol = new Gtk.TreeViewColumn();
67 expCol.Title = "State";
68 Gtk.CellRendererText expCell = new Gtk.CellRendererText();
69 expCol.PackStart(expCell, true);
70
71 tree.AppendColumn(coordCol);
72 tree.AppendColumn(expCol);
73
74 coordCol.AddAttribute(coordCell, "text", 0);
75 expCol.AddAttribute(expCell, "text", 1);
76
78 }