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:
8
8
jobs :
9
9
test :
10
10
docker :
11
- - image : cimg/go:1.15.1
11
+ - image : cimg/go:1.17.7
12
12
steps :
13
13
- checkout
14
14
- run :
19
19
- run :
20
20
name : " Run Tests"
21
21
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
2
2
3
3
import (
4
4
"fmt"
5
- "github.com/gopherlibs/appindicator/appindicator"
6
- "github.com/gotk3/gotk3/gtk"
7
5
"log"
8
6
"reflect"
9
7
"time"
8
+
9
+ "github.com/gopherlibs/appindicator/appindicator"
10
+ "github.com/gotk3/gotk3/gtk"
10
11
)
11
12
12
13
const (
@@ -91,23 +92,23 @@ func main() {
91
92
indicator .GetSecondaryActivateTarget ().SetLabel (label + "-changed" )
92
93
93
94
// Connect callback to item.
94
- _ , err = item .Connect ("activate" , func () {
95
+ _ = item .Connect ("activate" , func () {
95
96
indicator .SetLabel (label + "-changed" , "" )
96
97
})
97
98
if err != nil {
98
99
log .Fatal (err )
99
100
}
100
101
101
102
// Connect callback to indicator. New label.
102
- _ , err = indicator .Object ().Connect (appindicator .SignalNewLabel , func () {
103
+ _ = indicator .Object ().Connect (appindicator .SignalNewLabel , func () {
103
104
fmt .Println ("NewLabel: " , indicator .GetLabel ())
104
105
})
105
106
if err != nil {
106
107
log .Fatal (err )
107
108
}
108
109
109
110
// Connect callback to indicator. Scroll event.
110
- _ , err = indicator .Object ().Connect (appindicator .SignalScrollEvent , func () {
111
+ _ = indicator .Object ().Connect (appindicator .SignalScrollEvent , func () {
111
112
fmt .Println ("scroll" )
112
113
})
113
114
if err != nil {
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
- "github.com/gopherlibs/appindicator/appindicator"
5
- "github.com/gotk3/gotk3/gtk"
6
4
"log"
7
5
"time"
6
+
7
+ "github.com/gopherlibs/appindicator/appindicator"
8
+ "github.com/gotk3/gotk3/gtk"
8
9
)
9
10
10
11
func main () {
@@ -26,7 +27,7 @@ func main() {
26
27
indicator .SetStatus (appindicator .StatusActive )
27
28
indicator .SetMenu (menu )
28
29
29
- _ , err = item .Connect ("activate" , func () {
30
+ _ = item .Connect ("activate" , func () {
30
31
indicator .SetLabel ("activated" , "" )
31
32
})
32
33
if err != nil {
You can’t perform that action at this time.
0 commit comments