update comments
This commit is contained in:
2
main.go
2
main.go
@@ -773,7 +773,7 @@ func restoreStateAndHide() {
|
|||||||
// clear search
|
// clear search
|
||||||
searchEntry.SetText("")
|
searchEntry.SetText("")
|
||||||
|
|
||||||
// clear category filter (in gotk3 it means: rebuild, as we have no filtering here)
|
// One day or another we'll add SetFilterFunction here; it was impossible on the gotk3 library
|
||||||
appFlowBox = setUpAppsFlowBox(nil, "")
|
appFlowBox = setUpAppsFlowBox(nil, "")
|
||||||
for _, btn := range catButtons {
|
for _, btn := range catButtons {
|
||||||
btn.SetImagePosition(gtk.PosLeft)
|
btn.SetImagePosition(gtk.PosLeft)
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ func setUpCategoriesButtonBox() *gtk.EventBox {
|
|||||||
b := *button
|
b := *button
|
||||||
button.Connect("clicked", func(item *gtk.Button) {
|
button.Connect("clicked", func(item *gtk.Button) {
|
||||||
searchEntry.SetText("")
|
searchEntry.SetText("")
|
||||||
// !!! since gotk3 FlowBox type does not implement set_filter_func, we need to rebuild appFlowBox
|
// One day or another we'll add SetFilterFunction here; it was impossible on the gotk3 library
|
||||||
appFlowBox = setUpAppsFlowBox(lists[name], "")
|
appFlowBox = setUpAppsFlowBox(lists[name], "")
|
||||||
for _, btn := range catButtons {
|
for _, btn := range catButtons {
|
||||||
btn.SetImagePosition(gtk.PosLeft)
|
btn.SetImagePosition(gtk.PosLeft)
|
||||||
|
|||||||
Reference in New Issue
Block a user