mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
widget: make Clickable.Clicked use a pointer receiver
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ func (b *Clickable) Clicked() bool {
|
||||
}
|
||||
|
||||
// Clicks returns and clear the clicks since the last call to Clicks.
|
||||
func (b Clickable) Clicks() []Click {
|
||||
func (b *Clickable) Clicks() []Click {
|
||||
clicks := b.clicks
|
||||
b.clicks = nil
|
||||
b.prevClicks = 0
|
||||
|
||||
Reference in New Issue
Block a user