summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
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