force image in category button

This commit is contained in:
piotr
2021-07-21 01:49:34 +02:00
parent 955429d809
commit 897d693d62
2 changed files with 2 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ import (
"github.com/gotk3/gotk3/gtk" "github.com/gotk3/gotk3/gtk"
) )
const version = "0.1.4" const version = "0.1.5"
var ( var (
appDirs []string appDirs []string

View File

@@ -131,6 +131,7 @@ func setUpCategoriesButtonBox() *gtk.EventBox {
button.SetProperty("name", "category-button") button.SetProperty("name", "category-button")
catButtons = append(catButtons, button) catButtons = append(catButtons, button)
button.SetLabel(cat.DisplayName) button.SetLabel(cat.DisplayName)
button.SetAlwaysShowImage(true)
hBox.PackStart(button, false, false, 0) hBox.PackStart(button, false, false, 0)
name := cat.Name name := cat.Name
b := *button b := *button