Skip to content

Commit 4006750

Browse files
Update to Go v1.17.7 (#3)
1 parent 7b9ddb5 commit 4006750

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

.circleci/config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ workflows:
88
jobs:
99
test:
1010
docker:
11-
- image: cimg/go:1.15.1
11+
- image: cimg/go:1.17.7
1212
steps:
1313
- checkout
1414
- run:
@@ -19,5 +19,4 @@ jobs:
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 ./...

examples/complex/main.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package main
22

33
import (
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

1213
const (
@@ -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 {

examples/simple/main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package main
22

33
import (
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

1011
func 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 {

0 commit comments

Comments
 (0)