summaryrefslogtreecommitdiff
path: root/windowApply.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-28 22:47:53 -0600
committerJeff Carr <[email protected]>2025-01-29 12:18:16 -0600
commit345c1ee9b1a3d5a55fef53edb2f3a6d89aaf2fcd (patch)
treee49f21b69ecc672041c7aa5c63b747e5c5bd8c2c /windowApply.go
parentbbf5f79acb6d17239a492effb4e2cdb15ef20579 (diff)
move submit patchset to forgepb
Diffstat (limited to 'windowApply.go')
-rw-r--r--windowApply.go61
1 files changed, 0 insertions, 61 deletions
diff --git a/windowApply.go b/windowApply.go
deleted file mode 100644
index 11bb4fa..0000000
--- a/windowApply.go
+++ /dev/null
@@ -1,61 +0,0 @@
-package main
-
-import (
- "sync"
-
- "go.wit.com/lib/gadgets"
- "go.wit.com/log"
-
- "go.wit.com/gui"
-)
-
-// Shout out to "Go Generics 101" by Tapir Liu. Buy this book!
-
-type Lockable[T any] struct {
- mu sync.Mutex
- data T
-}
-
-func (l *Lockable[T]) Do(f func(*T)) {
-}
-
-func (l *Lockable[T]) Hide() {
- log.Info("testing:", l)
-}
-
-type applyWindow struct {
- win *gadgets.BasicWindow
- box *gui.Node
-
- // the top box of the repolist window
- topbox *gui.Node
-}
-
-type C3 = interface {
- Show()
- Hide()
- Hidden() bool
- Enable()
- Disable()
- ~*gadgets.BasicWindow | ~*gui.Node
-}
-
-func (r applyWindow) Hidden() bool {
- return r.win.Hidden()
-}
-
-func (r applyWindow) Show() {
- r.win.Show()
-}
-
-func (r applyWindow) Hide() {
- r.win.Hide()
-}
-
-func (r applyWindow) Disable() {
- r.box.Disable()
-}
-
-func (r applyWindow) Enable() {
- r.box.Enable()
-}