diff options
Diffstat (limited to 'linuxstatus/new.go')
| -rw-r--r-- | linuxstatus/new.go | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/linuxstatus/new.go b/linuxstatus/new.go deleted file mode 100644 index 4ae57eb..0000000 --- a/linuxstatus/new.go +++ /dev/null @@ -1,39 +0,0 @@ -// This creates a simple hello world window -package linuxstatus - -import ( - "go.wit.com/log" - - "go.wit.com/gui/gadgets" -) - -func New() *LinuxStatus { - if me != nil { - log.Log(WARN, "You have done New() twice. You can only do this once") - return me - } - me = &LinuxStatus { - hidden: true, - ready: false, - } - me.ifmap = make(map[int]*IFtype) - me.ipmap = make(map[string]*IPtype) - - return me -} - -func (ls *LinuxStatus) InitWindow() { - if ! ls.Initialized() { - log.Log(WARN, "not initalized yet (no parent for the window?)") - return - } - if ls.window != nil { - log.Log(WARN, "You already have a window") - ls.ready = true - return - } - - log.Log(WARN, "Creating the Window") - ls.window = gadgets.NewBasicWindow(ls.parent, "Linux OS Details") - ls.ready = true -} |
