[Gtk-sharp-list] TreeView Questions
Thu, 08 Apr 2004 22:54:39 -0400
1) What widget/signal to I look for when "editing" a cell in a
TreeView? I can edit the text, but when I submit it returns to normal.
This action doesn't surprise me as I'm sure I have to catch which cell
was changed and it's new value. But, I have no idea what signal to
check for on what widget.
2) How do I get a CellRendererToggle() (check box) to be editable? It
doesn't appear to work as the CellRendererText() which has a .Editable
Here's how I create my TreeView() right now. The above questions relate
directly to this code.
tableStore = new TreeStore(typeof(bool),
CellRendererText cell = new CellRendererText();
cell.Editable = true;
tableTree.AppendColumn("Gen", new CellRendererToggle(), 0);
tableTree.AppendColumn("Table", new CellRendererText(), "text", 1);
tableTree.AppendColumn("Object", cell, "text", 2);
Thanks in advance,