mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +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.
|
// 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
|
clicks := b.clicks
|
||||||
b.clicks = nil
|
b.clicks = nil
|
||||||
b.prevClicks = 0
|
b.prevClicks = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user