summaryrefslogtreecommitdiff
path: root/addText.go
diff options
context:
space:
mode:
Diffstat (limited to 'addText.go')
-rw-r--r--addText.go17
1 files changed, 1 insertions, 16 deletions
diff --git a/addText.go b/addText.go
index c6bcdbb..4759092 100644
--- a/addText.go
+++ b/addText.go
@@ -6,9 +6,6 @@ import (
"go.wit.com/widget"
)
-func compareStrings(n *tree.Node, ss []string) {
-}
-
func addText(n *tree.Node, s string) {
var tk *guiWidget
tk = n.TK.(*guiWidget)
@@ -21,19 +18,7 @@ func addText(n *tree.Node, s string) {
switch n.WidgetType {
case widget.Dropdown:
- for i, s := range n.State.Strings {
- log.Log(ANDLABS, "n.State.Strings =", i, s)
- _, ok := n.Strings[s]
- // If the key exists
- if ok {
- log.Log(ANDLABS, "string is already in the dropdown", i, s)
- } else {
- log.Log(ANDLABS, "adding new string to dropdown", i, s)
- addDropdownName(n, s)
- // TODO: make numbers
- n.Strings[s] = 21
- }
- }
+ addDropdownName(n, s)
case widget.Combobox:
addComboboxName(n, s)
default: