summaryrefslogtreecommitdiff
path: root/textbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'textbox.go')
-rw-r--r--textbox.go22
1 files changed, 8 insertions, 14 deletions
diff --git a/textbox.go b/textbox.go
index 376b75d..123244c 100644
--- a/textbox.go
+++ b/textbox.go
@@ -1,20 +1,14 @@
package gui
-func (n *Node) NewTextbox(name string) *Node {
- newNode := n.New(name, "Textbox")
-
- newNode.Widget.Custom = func() {
- log(debugGui, "wit/gui clicker()NewTextBox BUT IS EMPTY. FIXME", newNode.Widget)
- }
+import (
+ "git.wit.org/wit/gui/toolkit"
+)
- for _, aplug := range allPlugins {
- log(debugGui, "gui.NewTextbox() aplug =", aplug.name, "name =", newNode.Widget.Name)
- if (aplug.NewTextbox == nil) {
- log(debugGui, "\tgui.NewTextbox() aplug.NewTextbox = nil", aplug.name)
- continue
- }
- aplug.NewTextbox(&n.Widget, &newNode.Widget)
- }
+func (n *Node) NewTextbox(name string) *Node {
+ newNode := n.New(name, toolkit.Textbox, func() {
+ log(debugGui, "wit/gui clicker()NewTextBox BUT IS EMPTY. FIXME name =", name)
+ })
+ send(n, newNode)
return newNode
}