pin-up fixed

This commit is contained in:
piotr 2021-05-29 03:22:14 +02:00
parent 49f8e635ba
commit ad1fedf697
2 changed files with 4 additions and 5 deletions

Binary file not shown.

View File

@ -69,11 +69,12 @@ func setUpPinnedFlowBox() *gtk.FlowBox {
btn.Connect("activate", func() {
launch(entry.Exec, entry.Terminal)
})
btn.Connect("enter-notify-event", func() {
statusLabel.SetText(entry.CommentLoc)
})
flowBox.Add(btn)
}
}
flowBox.Connect("enter-notify-event", func() {
cancelClose()
})
@ -83,6 +84,7 @@ func setUpPinnedFlowBox() *gtk.FlowBox {
flowBox.GetChildren().Foreach(func(item interface{}) {
item.(*gtk.Widget).SetCanFocus(false)
})
flowBox.ShowAll()
return flowBox
}
@ -252,9 +254,6 @@ func flowBoxButton(entry desktopEntry) *gtk.Button {
button.Connect("enter-notify-event", func() {
statusLabel.SetText(desc)
})
button.Connect("leave-notify-event", func() {
statusLabel.SetText(status)
})
return button
}