2005-09-07 Eric Butler <eric@extremeboredom.net>

* gtk/NodeStore.cs : Add Clear() method
	* doc/en/Gtk/NodeStore.xml : Add documentation for above method


svn path=/trunk/gtk-sharp/; revision=49648
This commit is contained in:
Eric Butler 2005-09-07 17:34:58 +00:00
parent 0b79a484fd
commit bc2d3e81e0
3 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-09-07 Eric Butler <eric@extremeboredom.net>
* gtk/NodeStore.cs : Add Clear() method
* doc/en/Gtk/NodeStore.xml : Add documentation for above method
2005-09-07 Mike Kestner <mkestner@novell.com>
* configure.in.in : check for monodoc sources dir and warn if we are

View File

@ -191,5 +191,17 @@ Iteration: In new versions of Gtk# (2.0 and up) this class implements the <see c
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="Clear">
<MemberSignature Language="C#" Value="public void Clear ();" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Removes all nodes from the store.</summary>
<remarks></remarks>
</Docs>
</Member>
</Members>
</Type>

View File

@ -429,6 +429,13 @@ namespace Gtk {
gtksharp_node_store_emit_row_deleted (Handle, path.Handle);
}
public void Clear ()
{
while (nodes.Count > 0)
RemoveNode ((ITreeNode)nodes [0]);
}
private ITreeNode GetNodeAtPath (TreePath path)
{
int[] indices = path.Indices;