libnotify menu at right height
This commit is contained in:
parent
5e6d7cffdf
commit
efb5ede4b9
3
init.go
3
init.go
|
@ -191,7 +191,8 @@ func initPlugin() {
|
|||
me.notify.clock.offsetW = 13
|
||||
me.notify.clock.offsetH = 1
|
||||
|
||||
me.notify.menu.wId = -5
|
||||
me.notify.menu.wId = -6
|
||||
me.notify.menu.offsetH = 0
|
||||
|
||||
Set(&me.dropdown, "default")
|
||||
// s := fmt.Sprintln("fake default check =", me.FakeW, "dropdown.Id", me.dropdown.Id)
|
||||
|
|
|
@ -77,7 +77,7 @@ func makeNotifyMenu(wId int) {
|
|||
me.notify.menu.tk = makeNewInternalWidget(wId)
|
||||
me.notify.menu.tk.dumpWidget("init() menu")
|
||||
w, _ := me.baseGui.Size()
|
||||
me.notify.menu.tk.MoveToOffset(w-5, me.notify.clock.offsetH)
|
||||
me.notify.menu.tk.MoveToOffset(w-5, me.notify.menu.offsetH)
|
||||
me.notify.menu.tk.labelN = "|jwc|"
|
||||
me.notify.menu.tk.frame = false
|
||||
me.notify.menu.tk.setColorButton()
|
||||
|
@ -132,9 +132,10 @@ func libNotifyUpdate() {
|
|||
|
||||
// update the menu
|
||||
me.notify.menu.tk.v.Clear()
|
||||
me.notify.menu.tk.labelN = "boo"
|
||||
me.notify.menu.tk.labelN = "||jwc|"
|
||||
me.notify.menu.tk.v.WriteString(me.notify.menu.tk.labelN)
|
||||
// hardDrawUnderMouse(me.notify.menu.tk, "menu")
|
||||
hardDrawAtgocuiSize(me.notify.menu.tk)
|
||||
me.baseGui.SetViewOnTop(me.notify.menu.tk.v.Name())
|
||||
me.baseGui.SetViewOnTop(me.notify.clock.tk.v.Name())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue