summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-08 15:34:36 -0500
committerJeff Carr <[email protected]>2023-04-08 15:34:36 -0500
commitb24cc5898604191df7bfc2cacd7bc5043fa14a42 (patch)
tree31c011056e67b103ef62c33434ff04fe345a3571 /common.go
parent0e0787c0620c0dca59378d1e3b355c60a1a82de1 (diff)
gocui: compiling and running again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go19
1 files changed, 1 insertions, 18 deletions
diff --git a/common.go b/common.go
index b3bb973..4b5d721 100644
--- a/common.go
+++ b/common.go
@@ -9,18 +9,6 @@ import (
// functions for handling text related GUI elements
-func New() *Node {
- if (Config.rootNode == nil) {
- log(logError, "New() ERROR: rootNode is nil")
- }
-
- // There should only be one of these per application
- // This is due to restrictions by being cross platform
- // some toolkit's on some operating systems don't support more than one
- // Keep things simple. Do the default expected thing whenever possible
- return startS("gocui")
-}
-
func (n *Node) Show() *Node {
var a toolkit.Action
a.ActionType = toolkit.Show
@@ -204,14 +192,9 @@ func (n *Node) Unpad() *Node {
// me.window = myGui.New2().Window("DNS and IPv6 Control Panel").Standard()
// myFunnyWindow = myGui.NewWindow("Hello").Standard().SetText("Hola")
-func (n *Node) New2() *Node {
- log(debugNow, "New2() Start")
- return n.NewWindow2("New2")
-}
-
func (n *Node) Window(title string) *Node {
log(debugError, "Window()", n)
- return n.NewWindow2(title)
+ return n.NewWindow(title)
}
// This should not really do anything. as per the docs, the "Standard()" way