Skip to content

Commit

Permalink
Merge pull request #32 from nwg-piotr/fix31
Browse files Browse the repository at this point in the history
Fix setting icon themes
  • Loading branch information
nwg-piotr authored May 7, 2023
2 parents 6ba8c62 + 146ffb2 commit 46d64ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/gotk3/gotk3/gtk"
)

const version = "0.2.1"
const version = "0.2.2"

var (
preferences programSettings
Expand Down
4 changes: 2 additions & 2 deletions uicomponents.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ func setUpIconThemeListBox(currentIconTheme string) *gtk.ListBox {
n := name
eventBox.Connect("button-press-event", func() {
gtkSettings.SetProperty("gtk-icon-theme-name", namesMap[n])
gsettings.iconTheme = n
gsettings.iconTheme = namesMap[n]
})
row.Connect("focus-in-event", func() {
gtkSettings.SetProperty("gtk-icon-theme-name", namesMap[n])
gsettings.iconTheme = n
gsettings.iconTheme = namesMap[n]
})

if namesMap[n] == currentIconTheme || n == currentIconTheme {
Expand Down

0 comments on commit 46d64ef

Please sign in to comment.