diff options
Diffstat (limited to 'libnotify.go')
| -rw-r--r-- | libnotify.go | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/libnotify.go b/libnotify.go index b06e962..9658ad2 100644 --- a/libnotify.go +++ b/libnotify.go @@ -78,9 +78,9 @@ func makeNotifyMenu(wId int) { me.notify.menu.tk.dumpWidget("init() menu") w, _ := me.baseGui.Size() me.notify.menu.tk.MoveToOffset(w-5, me.notify.menu.offsetH) - me.notify.menu.tk.labelN = "|jwc|" + me.notify.menu.tk.labelN = "[ ]" me.notify.menu.tk.frame = false - me.notify.menu.tk.setColorButton() + me.notify.menu.tk.setColorNotifyMenu() me.notify.menu.tk.Show() me.notify.menu.active = true me.notify.menu.tk.dumpWidget("notifyMenu()") @@ -119,7 +119,7 @@ func libNotifyUpdate() { me.notify.clock.tk.v.WriteString(me.notify.clock.tk.labelN) hardDrawAtgocuiSize(me.notify.clock.tk) // hardDrawUnderMouse(me.notify.clock.tk, "clock") - log.Info("libNotifyUpdate updated clock", me.notify.clock.tk.labelN) + // log.Info("libNotifyUpdate updated clock", me.notify.clock.tk.labelN) if me.notify.menu.tk == nil { log.Info("libNotifyUpdate error menu.tk == nil") @@ -131,13 +131,20 @@ func libNotifyUpdate() { } // update the menu + hardDrawAtgocuiSize(me.notify.menu.tk) + me.notify.menu.tk.setColorNotifyMenu() + me.baseGui.SetViewOnTop(me.notify.menu.tk.v.Name()) + me.baseGui.SetViewOnTop(me.notify.clock.tk.v.Name()) +} + +func setNotifyMenuText(s string) { me.notify.menu.tk.v.Clear() - me.notify.menu.tk.labelN = "||jwc|" + me.notify.menu.tk.labelN = s me.notify.menu.tk.v.WriteString(me.notify.menu.tk.labelN) - // hardDrawUnderMouse(me.notify.menu.tk, "menu") hardDrawAtgocuiSize(me.notify.menu.tk) + me.notify.menu.tk.setColorNotifyMenu() me.baseGui.SetViewOnTop(me.notify.menu.tk.v.Name()) - me.baseGui.SetViewOnTop(me.notify.clock.tk.v.Name()) + log.Info("setNotifyMenuText() updated menu to:", me.notify.menu.tk.labelN) } // in the very end of redrawing things, this will place the help and stdout on the top or botton @@ -227,7 +234,7 @@ func hardDrawAtgocuiSize(tk *guiWidget) { tk.v.Frame = false tk.v.Clear() tk.v.WriteString(tk.labelN) - log.Info("hardDrawAtgocuiSize() err ok widget", tk.cuiName, a, b, c, d, tk.v.Name()) + log.Verbose("hardDrawAtgocuiSize() err ok widget", tk.cuiName, a, b, c, d, tk.v.Name()) } // find the "BG" widget and set it to the background on the very very bottom |
