pin-up fixed
This commit is contained in:
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
@@ -69,11 +69,12 @@ func setUpPinnedFlowBox() *gtk.FlowBox {
|
|||||||
btn.Connect("activate", func() {
|
btn.Connect("activate", func() {
|
||||||
launch(entry.Exec, entry.Terminal)
|
launch(entry.Exec, entry.Terminal)
|
||||||
})
|
})
|
||||||
|
btn.Connect("enter-notify-event", func() {
|
||||||
|
statusLabel.SetText(entry.CommentLoc)
|
||||||
|
})
|
||||||
flowBox.Add(btn)
|
flowBox.Add(btn)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
flowBox.Connect("enter-notify-event", func() {
|
flowBox.Connect("enter-notify-event", func() {
|
||||||
cancelClose()
|
cancelClose()
|
||||||
})
|
})
|
||||||
@@ -83,6 +84,7 @@ func setUpPinnedFlowBox() *gtk.FlowBox {
|
|||||||
flowBox.GetChildren().Foreach(func(item interface{}) {
|
flowBox.GetChildren().Foreach(func(item interface{}) {
|
||||||
item.(*gtk.Widget).SetCanFocus(false)
|
item.(*gtk.Widget).SetCanFocus(false)
|
||||||
})
|
})
|
||||||
|
flowBox.ShowAll()
|
||||||
|
|
||||||
return flowBox
|
return flowBox
|
||||||
}
|
}
|
||||||
@@ -252,9 +254,6 @@ 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(status)
|
|
||||||
})
|
|
||||||
return button
|
return button
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user