[Gtk-sharp-list] TreeModel.custom

John Luke jluke@cfl.rr.com
03 Jul 2003 15:44:41 -0400


Should TreeModel have the same overload for GetValue as TreeStore?
(I tried adding this myself but it wouldn't compile for some reason)

I ask because I would expect something like this to work:
void OnTreeViewChanged (object obj, EventArgs args)
	TreeIter iter = new TreeIter ();
	TreeModel model;
	treeview.Selection.GetSelected (out model, ref iter);
	string value = (string) model.GetValue (iter, 0);
	// use the string