mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
widget: don't refer to non-existent method Clickable.Clicks
Signed-off-by: Dominik Honnef <dominik@honnef.co>
This commit is contained in:
committed by
Elias Naur
parent
e666ef35ca
commit
7ea432fa13
+2
-2
@@ -53,8 +53,8 @@ func (b *Clickable) Click() {
|
|||||||
b.requestClicks++
|
b.requestClicks++
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clicked reports whether there are pending clicks as would be
|
// Clicked reports whether there are pending clicks. If so, Clicked
|
||||||
// reported by Clicks. If so, Clicked removes the earliest click.
|
// removes the earliest click.
|
||||||
func (b *Clickable) Clicked(gtx layout.Context) bool {
|
func (b *Clickable) Clicked(gtx layout.Context) bool {
|
||||||
if len(b.clicks) > 0 {
|
if len(b.clicks) > 0 {
|
||||||
b.clicks = b.clicks[1:]
|
b.clicks = b.clicks[1:]
|
||||||
|
|||||||
Reference in New Issue
Block a user