diff options
| author | Jeff Carr <[email protected]> | 2025-02-07 02:34:40 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-07 02:34:40 -0600 |
| commit | 7813fc126dee96c1fe901b4ba5fe7fd252804806 (patch) | |
| tree | cc49e620ddd597cc5f38398592518f5dff324e45 /dropdown.go | |
| parent | fb3c16707d72d41cbb92c2392f36dee76fa36936 (diff) | |
maybe fixed wierd clicks on window drag
Diffstat (limited to 'dropdown.go')
| -rw-r--r-- | dropdown.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dropdown.go b/dropdown.go index e08b11c..407d626 100644 --- a/dropdown.go +++ b/dropdown.go @@ -33,7 +33,7 @@ func makeNewFlagWidget(wId int) *guiWidget { // set the name used by gocui to the id tk.cuiName = fmt.Sprintf("%d DR", wId) - tk.color = &colorFlag + tk.setColorInput() // add this new widget on the binary tree tk.parent = me.treeRoot.TK.(*guiWidget) @@ -127,7 +127,7 @@ func (tk *guiWidget) showTextbox() { if me.textbox.tk == nil { // should only happen once me.textbox.tk = makeNewFlagWidget(me.textbox.wId) - me.dropdown.tk.dumpWidget("init() textbox") + me.textbox.tk.dumpWidget("init() textbox") } if me.textbox.tk == nil { log.Log(GOCUI, "showTextbox() Is Broken") @@ -137,7 +137,7 @@ func (tk *guiWidget) showTextbox() { // log.Log(GOCUI, "showTextbox() SHOWING AT W,H=", startW, startH) me.textbox.tk.MoveToOffset(startW+3, startH+2) me.textbox.tk.labelN = "holy cow" - me.textbox.tk.SetColorRed() + me.textbox.tk.setColorInput() me.textbox.tk.Show() me.textbox.active = true me.textbox.callerTK = tk |
