summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-05 03:19:08 -0600
committerJeff Carr <[email protected]>2024-02-05 03:19:08 -0600
commita15aea03ea4d0bc73d3773f7c77b380caa57153c (patch)
treee3da122003d900d5665f889b180bc4a3b7be0d5a /window.go
parenta907a4418a1f1d027b288b1bbd91a43b103f29f9 (diff)
rename to drawView()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window.go')
-rw-r--r--window.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/window.go b/window.go
index 789a355..5e1b6ec 100644
--- a/window.go
+++ b/window.go
@@ -4,6 +4,7 @@ import (
"go.wit.com/widget"
)
+// re-draws the buttons for each of the windows
func (w *guiWidget) redoWindows(nextW int, nextH int) {
var startW int = nextW
var startH int = nextH
@@ -19,9 +20,7 @@ func (w *guiWidget) redoWindows(nextW int, nextH int) {
child.gocuiSetWH(nextW, nextH)
child.Hide()
- // use the direct method recreateView() to
- // bypass sanity checks here (fix this?)
- child.recreateView()
+ child.drawView()
sizeW := child.gocuiSize.Width()
nextW += sizeW + 4
child.redoWindows(startW+3, startH+2)