File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ workflows:
88jobs :
99 test :
1010 docker :
11- - image : cimg/go:1.15.1
11+ - image : cimg/go:1.17.7
1212 steps :
1313 - checkout
1414 - run :
1919 - run :
2020 name : " Run Tests"
2121 command : |
22- # upstream tests are failing, commenting out for now
23- #./build.sh -v ./...
22+ ./build.sh -v ./...
Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ package main
22
33import (
44 "fmt"
5- "github.com/gopherlibs/appindicator/appindicator"
6- "github.com/gotk3/gotk3/gtk"
75 "log"
86 "reflect"
97 "time"
8+
9+ "github.com/gopherlibs/appindicator/appindicator"
10+ "github.com/gotk3/gotk3/gtk"
1011)
1112
1213const (
@@ -91,23 +92,23 @@ func main() {
9192 indicator .GetSecondaryActivateTarget ().SetLabel (label + "-changed" )
9293
9394 // Connect callback to item.
94- _ , err = item .Connect ("activate" , func () {
95+ _ = item .Connect ("activate" , func () {
9596 indicator .SetLabel (label + "-changed" , "" )
9697 })
9798 if err != nil {
9899 log .Fatal (err )
99100 }
100101
101102 // Connect callback to indicator. New label.
102- _ , err = indicator .Object ().Connect (appindicator .SignalNewLabel , func () {
103+ _ = indicator .Object ().Connect (appindicator .SignalNewLabel , func () {
103104 fmt .Println ("NewLabel: " , indicator .GetLabel ())
104105 })
105106 if err != nil {
106107 log .Fatal (err )
107108 }
108109
109110 // Connect callback to indicator. Scroll event.
110- _ , err = indicator .Object ().Connect (appindicator .SignalScrollEvent , func () {
111+ _ = indicator .Object ().Connect (appindicator .SignalScrollEvent , func () {
111112 fmt .Println ("scroll" )
112113 })
113114 if err != nil {
Original file line number Diff line number Diff line change 11package main
22
33import (
4- "github.com/gopherlibs/appindicator/appindicator"
5- "github.com/gotk3/gotk3/gtk"
64 "log"
75 "time"
6+
7+ "github.com/gopherlibs/appindicator/appindicator"
8+ "github.com/gotk3/gotk3/gtk"
89)
910
1011func main () {
@@ -26,7 +27,7 @@ func main() {
2627 indicator .SetStatus (appindicator .StatusActive )
2728 indicator .SetMenu (menu )
2829
29- _ , err = item .Connect ("activate" , func () {
30+ _ = item .Connect ("activate" , func () {
3031 indicator .SetLabel ("activated" , "" )
3132 })
3233 if err != nil {
You can’t perform that action at this time.
0 commit comments