diff options
Diffstat (limited to 'choices.go')
| -rw-r--r-- | choices.go | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -63,7 +63,16 @@ func newChoices(parent *gui.Node) *choices { c.animal.AddText("honey badger") c.animal.AddText("polar bear") - c.place = gadgets.NewBasicEntry(c.grid, "favorite place") + c.place = gadgets.NewBasicEntry(c.grid, "common favorite place") + c.place.Custom = func () { + log.Info("now set to:", c.place.String()) + if c.place == section1.place { + section2.place.SetText(c.place.String()) + } + if c.place == section2.place { + section1.place.SetText(c.place.String()) + } + } c.place.SetText("coffee shop") return c |
