fix #38 @nightly-brew
This commit is contained in:
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
2
main.go
2
main.go
@@ -21,7 +21,7 @@ import (
|
|||||||
"github.com/gotk3/gotk3/gtk"
|
"github.com/gotk3/gotk3/gtk"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "0.2.2"
|
const version = "0.2.3"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
appDirs []string
|
appDirs []string
|
||||||
|
|||||||
@@ -77,6 +77,9 @@ func setUpPinnedFlowBox() *gtk.FlowBox {
|
|||||||
btn.Connect("enter-notify-event", func() {
|
btn.Connect("enter-notify-event", func() {
|
||||||
statusLabel.SetText(entry.CommentLoc)
|
statusLabel.SetText(entry.CommentLoc)
|
||||||
})
|
})
|
||||||
|
btn.Connect("focus-in-event", func() {
|
||||||
|
statusLabel.SetText(entry.CommentLoc)
|
||||||
|
})
|
||||||
flowBox.Add(btn)
|
flowBox.Add(btn)
|
||||||
}
|
}
|
||||||
pinnedFlowBoxWrapper.PackStart(flowBox, true, false, 0)
|
pinnedFlowBoxWrapper.PackStart(flowBox, true, false, 0)
|
||||||
@@ -272,6 +275,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("focus-in-event", func() {
|
||||||
|
statusLabel.SetText(desc)
|
||||||
|
})
|
||||||
return button
|
return button
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user