clear status label on button exit
This commit is contained in:
@@ -281,6 +281,9 @@ func flowBoxButton(entry desktopEntry) *gtk.Button {
|
|||||||
button.Connect("enter-notify-event", func() {
|
button.Connect("enter-notify-event", func() {
|
||||||
statusLabel.SetText(desc)
|
statusLabel.SetText(desc)
|
||||||
})
|
})
|
||||||
|
button.Connect("leave-notify-event", func() {
|
||||||
|
statusLabel.SetText("")
|
||||||
|
})
|
||||||
button.Connect("focus-in-event", func() {
|
button.Connect("focus-in-event", func() {
|
||||||
statusLabel.SetText(desc)
|
statusLabel.SetText(desc)
|
||||||
})
|
})
|
||||||
@@ -317,6 +320,9 @@ func powerButton(iconPath, command string) *gtk.Button {
|
|||||||
button.Connect("enter-notify-event", func() {
|
button.Connect("enter-notify-event", func() {
|
||||||
statusLabel.SetText(command)
|
statusLabel.SetText(command)
|
||||||
})
|
})
|
||||||
|
button.Connect("leave-notify-event", func() {
|
||||||
|
statusLabel.SetText("")
|
||||||
|
})
|
||||||
button.Connect("focus-in-event", func() {
|
button.Connect("focus-in-event", func() {
|
||||||
statusLabel.SetText(command)
|
statusLabel.SetText(command)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user