mirror of
https://github.com/nwg-piotr/nwg-drawer.git
synced 2024-08-16 17:20:22 +03:00
clear status label on button exit
This commit is contained in:
parent
7b2ed76fac
commit
8e02b59f83
@ -281,6 +281,9 @@ func flowBoxButton(entry desktopEntry) *gtk.Button {
|
||||
button.Connect("enter-notify-event", func() {
|
||||
statusLabel.SetText(desc)
|
||||
})
|
||||
button.Connect("leave-notify-event", func() {
|
||||
statusLabel.SetText("")
|
||||
})
|
||||
button.Connect("focus-in-event", func() {
|
||||
statusLabel.SetText(desc)
|
||||
})
|
||||
@ -317,6 +320,9 @@ func powerButton(iconPath, command string) *gtk.Button {
|
||||
button.Connect("enter-notify-event", func() {
|
||||
statusLabel.SetText(command)
|
||||
})
|
||||
button.Connect("leave-notify-event", func() {
|
||||
statusLabel.SetText("")
|
||||
})
|
||||
button.Connect("focus-in-event", func() {
|
||||
statusLabel.SetText(command)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user