Skip to content

Commit

Permalink
Update to Go v1.17.7 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelicianoTech authored Feb 19, 2022
1 parent 7b9ddb5 commit 4006750
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ workflows:
jobs:
test:
docker:
- image: cimg/go:1.15.1
- image: cimg/go:1.17.7
steps:
- checkout
- run:
Expand All @@ -19,5 +19,4 @@ jobs:
- run:
name: "Run Tests"
command: |
# upstream tests are failing, commenting out for now
#./build.sh -v ./...
./build.sh -v ./...
11 changes: 6 additions & 5 deletions examples/complex/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package main

import (
"fmt"
"github.com/gopherlibs/appindicator/appindicator"
"github.com/gotk3/gotk3/gtk"
"log"
"reflect"
"time"

"github.com/gopherlibs/appindicator/appindicator"
"github.com/gotk3/gotk3/gtk"
)

const (
Expand Down Expand Up @@ -91,23 +92,23 @@ func main() {
indicator.GetSecondaryActivateTarget().SetLabel(label + "-changed")

// Connect callback to item.
_, err = item.Connect("activate", func() {
_ = item.Connect("activate", func() {
indicator.SetLabel(label+"-changed", "")
})
if err != nil {
log.Fatal(err)
}

// Connect callback to indicator. New label.
_, err = indicator.Object().Connect(appindicator.SignalNewLabel, func() {
_ = indicator.Object().Connect(appindicator.SignalNewLabel, func() {
fmt.Println("NewLabel: ", indicator.GetLabel())
})
if err != nil {
log.Fatal(err)
}

// Connect callback to indicator. Scroll event.
_, err = indicator.Object().Connect(appindicator.SignalScrollEvent, func() {
_ = indicator.Object().Connect(appindicator.SignalScrollEvent, func() {
fmt.Println("scroll")
})
if err != nil {
Expand Down
7 changes: 4 additions & 3 deletions examples/simple/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package main

import (
"github.com/gopherlibs/appindicator/appindicator"
"github.com/gotk3/gotk3/gtk"
"log"
"time"

"github.com/gopherlibs/appindicator/appindicator"
"github.com/gotk3/gotk3/gtk"
)

func main() {
Expand All @@ -26,7 +27,7 @@ func main() {
indicator.SetStatus(appindicator.StatusActive)
indicator.SetMenu(menu)

_, err = item.Connect("activate", func() {
_ = item.Connect("activate", func() {
indicator.SetLabel("activated", "")
})
if err != nil {
Expand Down

0 comments on commit 4006750

Please sign in to comment.