Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Nov 27, 2024
1 parent 5a42291 commit 6e13828
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/widgets/widgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"image/color"
"time"

"github.com/AllenDang/giu"
g "github.com/AllenDang/giu"
)

Expand Down Expand Up @@ -180,11 +179,11 @@ func loop() {
g.TreeNode("TreeNode with event handler").Layout(
g.Selectable("Selectable 1").OnClick(func() { fmt.Println(1) }),
g.Selectable("Selectable 2").OnClick(func() { fmt.Println(2) }),
).EventHandler(giu.Event().OnClick(giu.MouseButtonLeft, func() {
).EventHandler(g.Event().OnClick(g.MouseButtonLeft, func() {
fmt.Println("Clicked")
}).OnDClick(giu.MouseButtonLeft, func() {
}).OnDClick(g.MouseButtonLeft, func() {
fmt.Println("Double-Clicked")
}).OnClick(giu.MouseButtonRight, func() {
}).OnClick(g.MouseButtonRight, func() {
fmt.Println("Right-Clicked")
})),
),
Expand Down

0 comments on commit 6e13828

Please sign in to comment.