From a15aea03ea4d0bc73d3773f7c77b380caa57153c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 5 Feb 2024 03:19:08 -0600 Subject: rename to drawView() Signed-off-by: Jeff Carr --- window.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'window.go') 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) -- cgit v1.2.3