summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
Diffstat (limited to 'window.go')
-rw-r--r--window.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/window.go b/window.go
index c043df3..313c153 100644
--- a/window.go
+++ b/window.go
@@ -6,6 +6,7 @@ package main
import (
"fmt"
+ log "go.wit.com/log"
"go.wit.com/toolkits/tree"
"go.wit.com/widget"
)
@@ -37,7 +38,13 @@ func (tk *guiWidget) redrawWindow(w int, h int) {
tk.full.h0 = tk.force.h0
tk.setFullSize()
- me.baseGui.SetView(tk.cuiName, tk.gocuiSize.w0, tk.gocuiSize.h0, tk.gocuiSize.w1, tk.gocuiSize.h1, 0)
+ v, err := me.baseGui.SetView(tk.cuiName, tk.gocuiSize.w0, tk.gocuiSize.h0, tk.gocuiSize.w1, tk.gocuiSize.h1, 0)
+ if err != nil {
+ log.Info("crap. got an err", err)
+ }
+ if tk.v != v {
+ log.Info("crap. got another problem v != tk.v")
+ }
tk.Show()
tk.v.Clear()
fmt.Fprint(tk.v, "ZZZ"+tk.GetText())