summaryrefslogtreecommitdiff
path: root/choices.go
diff options
context:
space:
mode:
Diffstat (limited to 'choices.go')
-rw-r--r--choices.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/choices.go b/choices.go
index 032a2d0..753e135 100644
--- a/choices.go
+++ b/choices.go
@@ -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