diff options
Diffstat (limited to 'new.go')
| -rw-r--r-- | new.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,10 +1,10 @@ // This creates a simple hello world window package linuxstatus -import ( +import ( "go.wit.com/log" - "go.wit.com/gui/gadgets" + "go.wit.com/lib/gadgets" ) func New() *LinuxStatus { @@ -12,18 +12,18 @@ func New() *LinuxStatus { log.Log(WARN, "You have done New() twice. You can only do this once") return me } - me = &LinuxStatus { + me = &LinuxStatus{ hidden: true, - ready: false, + ready: false, } me.ifmap = make(map[int]*IFtype) me.ipmap = make(map[string]*IPtype) - + return me } func (ls *LinuxStatus) InitWindow() { - if ! ls.Initialized() { + if !ls.Initialized() { log.Log(WARN, "not initalized yet (no parent for the window?)") return } |
