summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-17 22:43:57 -0600
committerJeff Carr <[email protected]>2024-01-17 22:43:57 -0600
commit2411bcd2764b588492fe0388fb44675795495f57 (patch)
treeabb96e27b164131c16762b10e24c888d1349be37 /main.go
parent9e8a40023cd86c69ec4e0ae0f23ce148793ea38e (diff)
fix against gui v0.12.13
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.go b/main.go
index c4d60fc..c3f9903 100644
--- a/main.go
+++ b/main.go
@@ -132,9 +132,9 @@ func dropdownWindow(p *gui.Node) {
var mapWindows map[string]*gui.Node
mapWindows = make(map[string]*gui.Node)
- dd := p.NewDropdown("Window Dropdown")
+ dd := p.NewDropdown()
dd.Custom = func() {
- name := dd.GetText()
+ name := dd.String()
activeWidget = mapWindows[name]
setActiveWidget(activeWidget)
log.Log(INFO, "The Window was set to", name)
@@ -149,7 +149,7 @@ func dropdownWindow(p *gui.Node) {
// var last = ""
for _, child := range p.Children() {
log.Log(INFO, "\t\t", child.GetProgName())
- dd.AddDropdownName(child.GetProgName())
+ dd.AddText(child.GetProgName())
// last = child.Name
mapWindows[child.GetProgName()] = child
if (activeWidget == nil) {
@@ -163,9 +163,9 @@ func dropdownWindowWidgets(p *gui.Node) {
var mapWindows map[string]*gui.Node
mapWindows = make(map[string]*gui.Node)
- dd := p.NewDropdown("Window Widgets Dropdown")
+ dd := p.NewDropdown()
dd.Custom = func() {
- name := dd.GetText()
+ name := dd.String()
activeWidget = mapWindows[name]
setActiveWidget(activeWidget)
}
@@ -177,7 +177,7 @@ func dropdownWindowWidgets(p *gui.Node) {
addDropdowns = func (n *gui.Node) {
// s := n.dumpWidget(true)
s := n.GetProgName()
- dd.AddDropdownName(s)
+ dd.AddText(s)
mapWindows[s] = n
for _, child := range n.Children() {