diff options
| author | Jeff Carr <[email protected]> | 2024-01-31 14:02:20 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-31 14:02:20 -0600 |
| commit | d52f6a6903ed8b2e21397c99e0b17dcce2eb9073 (patch) | |
| tree | 96241ea3ae3584ff92f0bff3313a031e15aecbc5 | |
| parent | 6514043d9fee59cdf1ee2f075c8b7992dd766657 (diff) | |
use SetText()v0.20.0
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | basicEntry.go | 1 | ||||
| -rw-r--r-- | durationSlider.go | 4 | ||||
| -rw-r--r-- | oneLiner.go | 3 |
3 files changed, 4 insertions, 4 deletions
diff --git a/basicEntry.go b/basicEntry.go index da39962..9283101 100644 --- a/basicEntry.go +++ b/basicEntry.go @@ -24,7 +24,6 @@ type BasicEntry struct { func (n *BasicEntry) SetText(s string) *BasicEntry { log.Log(GADGETS, "BasicEntry.Set() =", s) - n.v.SetValue(s) n.v.SetText(s) n.v.SetLabel(s) return n diff --git a/durationSlider.go b/durationSlider.go index a616733..03eb665 100644 --- a/durationSlider.go +++ b/durationSlider.go @@ -43,14 +43,14 @@ func (n *Duration) Set(d time.Duration) { step = timeRange / 1000 if step == 0 { log.Log(GADGETS, "duration.Set() division by step == 0", n.Low, n.High, timeRange, step) - n.s.SetValue(0) + n.s.SetInt(0) return } offset = d - n.Low i := int(offset / step) log.Log(GADGETS, "duration.Set() =", n.Low, n.High, d, "i =", i) // n.s.I = i - n.s.SetValue(i) + n.s.SetInt(i) n.s.Custom() } diff --git a/oneLiner.go b/oneLiner.go index 1e7c687..13c3a53 100644 --- a/oneLiner.go +++ b/oneLiner.go @@ -27,7 +27,8 @@ func (n *OneLiner) String() string { } func (n *OneLiner) SetText(s string) *OneLiner { - n.SetValue(s) + log.Log(GADGETS, "OneLiner.Set() =", s) + n.v.SetLabel(s) return n } |
