summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin.go b/plugin.go
index 31b47c3..eba3256 100644
--- a/plugin.go
+++ b/plugin.go
@@ -212,6 +212,9 @@ func newAction(n *Node, atype toolkit.ActionType) *toolkit.Action {
a.Name = n.Name
a.Text = n.Text
a.WidgetId = n.id
+ if (n.parent != nil) {
+ a.ParentId = n.parent.id
+ }
a.WidgetType = n.WidgetType
return &a
@@ -233,7 +236,7 @@ func newaction(a *toolkit.Action, n *Node, where *Node) {
if (where != nil) {
a.ParentId = where.id
if (where.WidgetType == toolkit.Grid) {
- placeGrid(a, n, where)
+ n.gridIncrement()
}
}