diff --git a/draw.go b/draw.go index 7f37297..183bb7b 100644 --- a/draw.go +++ b/draw.go @@ -59,7 +59,7 @@ func (rs *RepoStatus) drawGitBranches() { rs.showBranchesButton = newgrid.NewButton("show branches", func() { all := rs.getBranches() i := len(all) - count.Set(strconv.Itoa(i) + " branches") + count.SetText(strconv.Itoa(i) + " branches") }) count = newgrid.NewLabel("") @@ -178,12 +178,12 @@ func (rs *RepoStatus) setTag() bool { newver := strconv.Itoa(newa) if newa < olda { log.Warn("new version bad", newver, "vs old version", lasttag, "newa =", newa, "olda =", olda) - rs.newversion.Set("bad") + rs.newversion.SetText("bad") return false } if newa > olda { log.Warn("new version ok", newver, "vs old version", lasttag) - rs.newversion.Set(newver) + rs.newversion.SetText(newver) rs.minor.SetText("") rs.revision.SetText("") return true @@ -193,13 +193,13 @@ func (rs *RepoStatus) setTag() bool { newver = strconv.Itoa(newa) + "." + strconv.Itoa(newb) if newb < oldb { log.Warn("new version bad", newver, "vs old version", lasttag, "newb =", newb, "oldb =", oldb) - rs.newversion.Set("bad") + rs.newversion.SetText("bad") return false } if newb > oldb { log.Warn("new version ok", newver, "vs old version", lasttag) - rs.newversion.Set(newver) + rs.newversion.SetText(newver) rs.revision.SetText("") return true } @@ -208,11 +208,11 @@ func (rs *RepoStatus) setTag() bool { newver = strconv.Itoa(newa) + "." + strconv.Itoa(newb) + "." + strconv.Itoa(newc) if newc <= oldc { log.Warn("new version bad", newver, "vs old version", lasttag) - rs.newversion.Set("bad") + rs.newversion.SetText("bad") return false } log.Warn("new version ok", newver, "vs old version", lasttag) - rs.newversion.Set(newver) + rs.newversion.SetText(newver) return true } diff --git a/go.mod b/go.mod index 7f4b361..a39dcfd 100644 --- a/go.mod +++ b/go.mod @@ -3,10 +3,10 @@ module go.wit.com/lib/gui/repostatus go 1.21.4 require ( - go.wit.com/gui v0.12.17 - go.wit.com/lib/gadgets v0.12.11 + go.wit.com/gui v0.12.18 + go.wit.com/lib/gadgets v0.12.12 go.wit.com/log v0.5.5 - go.wit.com/widget v1.1.5 + go.wit.com/widget v1.1.6 ) require ( diff --git a/go.sum b/go.sum index d145cda..ca171e5 100644 --- a/go.sum +++ b/go.sum @@ -4,11 +4,11 @@ go.wit.com/dev/alexflint/scalar v1.2.1 h1:loXOcbVnd+8YeJRLey+XXidecBiedMDO00zQ26 go.wit.com/dev/alexflint/scalar v1.2.1/go.mod h1:+rYsfxqdI2cwA8kJ7GCMwWbNJvfvWUurOCXLiwdTtSs= go.wit.com/dev/davecgh/spew v1.1.4 h1:C9hj/rjlUpdK+E6aroyLjCbS5MFcyNUOuP1ICLWdNek= go.wit.com/dev/davecgh/spew v1.1.4/go.mod h1:sihvWmnQ/09FWplnEmozt90CCVqBtGuPXM811tgfhFA= -go.wit.com/gui v0.12.17 h1:O7fdI8dwDA8/TfkO0RN6LCK05dDiQRTE1Zvek1Imkrc= -go.wit.com/gui v0.12.17/go.mod h1:27+THr2a84GZ61KKUuN30WYnYoSsBewllUKc+fnWLto= -go.wit.com/lib/gadgets v0.12.11 h1:IgElPe2dFQq9xOQKtAx44Icfzf3tYEPP8NAhlXNUb2A= -go.wit.com/lib/gadgets v0.12.11/go.mod h1:Hb/vSiW22hPJjTVA1mShQ6HuqQ7dHGB95WLEfZlPO3M= +go.wit.com/gui v0.12.18 h1:gFVDaJFz/Su8JgUd9Oxnb3t+FS+bzy5WJSvGoKVGYZU= +go.wit.com/gui v0.12.18/go.mod h1:27+THr2a84GZ61KKUuN30WYnYoSsBewllUKc+fnWLto= +go.wit.com/lib/gadgets v0.12.12 h1:3UFxKIOibaztREXgsLpMhVzG3w0gT3V98QzbWg2EPoc= +go.wit.com/lib/gadgets v0.12.12/go.mod h1:1bT2DhJkwP7zJJydhiAnchlh+WJU4BWdhkYnX6mvQME= go.wit.com/log v0.5.5 h1:bK3b94uVKgev4jB5wg06FnvCFBEapQICTSH2YW+CWr4= go.wit.com/log v0.5.5/go.mod h1:BaJBfHFqcJSJLXGQ9RHi3XVhPgsStxSMZRlaRxW4kAo= -go.wit.com/widget v1.1.5 h1:jx5hJ2WLZJnCcvMuaLHegzpNlzwo+0kOkzsRkzRiB30= -go.wit.com/widget v1.1.5/go.mod h1:I8tnD3x3ECbB/CRNnLCdC+uoyk7rK0AEkzK1bQYSqoQ= +go.wit.com/widget v1.1.6 h1:av2miF5vlohMfARA/QGPTPfgW/ADup1c+oeAOKgroPY= +go.wit.com/widget v1.1.6/go.mod h1:I8tnD3x3ECbB/CRNnLCdC+uoyk7rK0AEkzK1bQYSqoQ=