Hi,
Attached is a patch that add a Clear method to NodeStore.
Don't know if there is a better way, but this work's for me (tm).
/Fredrik
Index: gtk/NodeStore.cs
===================================================================
--- gtk/NodeStore.cs (revision 44893)
+++ gtk/NodeStore.cs (arbetskopia)
@@ -405,6 +405,14 @@
gtksharp_node_store_emit_row_deleted (Handle, path.Handle);
}
+ public void Clear ()
+ {
+ while (nodes.Count > 0) {
+ ITreeNode node = Nodes[0] as ITreeNode;
+ RemoveNode (node);
+ }
+ }
+
private ITreeNode GetNodeAtPath (TreePath path)
{
int[] indices = path.Indices;
Index: ChangeLog
===================================================================
--- ChangeLog (revision 44893)
+++ ChangeLog (arbetskopia)
@@ -1,3 +1,6 @@
+2005-05-22 Fredrik Nilsson <[EMAIL PROTECTED]>
+ * gtk/NodeStore.cs: implement Clear() method.
+
2005-05-21 Mike Kestner <[EMAIL PROTECTED]>
* audit : add a compatibility auditing framework.
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list