mirror of
https://github.com/nwg-piotr/nwg-drawer.git
synced 2024-08-16 17:20:22 +03:00
pin-up fixed
This commit is contained in:
parent
49f8e635ba
commit
ad1fedf697
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user