Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xwt.Gtk/Xwt.GtkBackend/TreeStoreBackend.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/TreeStoreBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/TreeStoreBackend.cs
index 7fc91587..27c1699b 100644
--- a/Xwt.Gtk/Xwt.GtkBackend/TreeStoreBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/TreeStoreBackend.cs
@@ -211,7 +211,8 @@ namespace Xwt.GtkBackend
version++;
IterPos tpos = GetIterPos (pos);
Gtk.TreeIter it = tpos.Iter;
- var eventArgs = new TreeNodeChildEventArgs (GetParent (tpos), -1);
+ var delPath = Tree.GetPath (it);
+ var eventArgs = new TreeNodeChildEventArgs (GetParent (tpos), delPath.Indices[delPath.Indices.Length - 1]);
Tree.Remove (ref it);
if (NodeDeleted != null)
NodeDeleted (this, eventArgs);