force image in category button #8

This commit is contained in:
piotr
2021-07-21 01:52:19 +02:00
parent 897d693d62
commit e5246a13cd

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)
// fix #8
button.SetAlwaysShowImage(true) button.SetAlwaysShowImage(true)
hBox.PackStart(button, false, false, 0) hBox.PackStart(button, false, false, 0)
name := cat.Name name := cat.Name