remove search bar
This commit is contained in:
@@ -2,11 +2,12 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/diamondburned/gotk4-layer-shell/pkg/gtklayershell"
|
||||
"io/fs"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/diamondburned/gotk4-layer-shell/pkg/gtklayershell"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/diamondburned/gotk4/pkg/gdk/v3"
|
||||
@@ -115,7 +116,7 @@ func setUpCategoriesButtonBox() *gtk.EventBox {
|
||||
button := gtk.NewButtonWithLabel("All")
|
||||
button.SetObjectProperty("name", "category-button")
|
||||
button.Connect("clicked", func(item *gtk.Button) {
|
||||
searchEntry.SetText("")
|
||||
//searchEntry.SetText("")
|
||||
appFlowBox = setUpAppsFlowBox(nil, "")
|
||||
for _, btn := range catButtons {
|
||||
btn.SetImagePosition(gtk.PosLeft)
|
||||
@@ -135,7 +136,7 @@ func setUpCategoriesButtonBox() *gtk.EventBox {
|
||||
name := cat.Name
|
||||
b := *button
|
||||
button.Connect("clicked", func(item *gtk.Button) {
|
||||
searchEntry.SetText("")
|
||||
//searchEntry.SetText("")
|
||||
// One day or another we'll add SetFilterFunction here; it was impossible on the gotk3 library
|
||||
appFlowBox = setUpAppsFlowBox(lists[name], "")
|
||||
for _, btn := range catButtons {
|
||||
|
||||
Reference in New Issue
Block a user