Merge pull request #9 from nwg-piotr/force_img
SetAlwaysShowImage(true) in category button
This commit is contained in:
2
main.go
2
main.go
@@ -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
|
||||||
|
|||||||
@@ -131,6 +131,8 @@ 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)
|
||||||
hBox.PackStart(button, false, false, 0)
|
hBox.PackStart(button, false, false, 0)
|
||||||
name := cat.Name
|
name := cat.Name
|
||||||
b := *button
|
b := *button
|
||||||
|
|||||||
Reference in New Issue
Block a user