diff options
Diffstat (limited to 'action.go')
| -rw-r--r-- | action.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -27,7 +27,7 @@ func sendAction(n *Node, atype widget.ActionType) { } n.mu.Lock() defer n.mu.Unlock() - log.Warn("SENDING ACTION STRINGS n.Strings", n.strings) + log.Warn("SENDING ACTION STRINGS n.Strings", n.strings, n.id, n.WidgetType, n.GetProgName()) // if the widget is hidden, don't send actions to the plugin if n.hidden { @@ -50,7 +50,13 @@ func sendAction(n *Node, atype widget.ActionType) { a.State.ProgName = n.progname a.State.Label = n.label a.State.Value = n.value + a.State.Checked = n.checked + a.State.Visable = n.visable + a.State.Pad = n.pad + a.State.Expand = n.expand + a.State.Borderless = n.borderless + a.State.Direction = n.direction for s, _ := range n.strings { a.State.Strings = append(a.State.Strings, s) @@ -80,7 +86,7 @@ func sendAction(n *Node, atype widget.ActionType) { // sends the action/event to each toolkit via a golang plugin channel func sendActionToPlugin(a *widget.Action) { for _, aplug := range allPlugins { - log.Log(PLUG, "Action() aplug =", aplug.name, "Action type=", a.ActionType) + log.Warn("send to toolkit =", aplug.name, "Action type=", a.ActionType, a.WidgetId) if aplug.pluginChan == nil { log.Warn("Action() retrieving the aplug.PluginChannel()", aplug.name) aplug.pluginChan = aplug.PluginChannel() |
