summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-26 17:19:20 -0500
committerJeff Carr <[email protected]>2023-03-26 17:19:20 -0500
commit6013fde8332e8ecbffaf1a0977ba2e1da8ea8775 (patch)
tree3f9ccd75e8699974f3412fdd79a20173672c19c2 /structs.go
parent6f91f5e080e06cdc0f34b13d23e5fd16ea37259a (diff)
improvements towards a working dns control panel
democui has the help menu try to add mouse support to gocui make a direct access method Margin() and Pad() tests add SPEW also push devel branch to github Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index 5477d2e..62e5f92 100644
--- a/structs.go
+++ b/structs.go
@@ -2,6 +2,7 @@ package gui
import (
"git.wit.org/wit/gui/toolkit"
+ "sync"
)
//
@@ -56,6 +57,7 @@ type GuiConfig struct {
// simply the name and the size of whatever GUI element exists
type Node struct {
id int
+ initOnce sync.Once
widget toolkit.Widget