~eliasnaur/gio-patches

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH gio] Programmatic Click function

Paulo Melo
Details
Message ID
<20210204080924.24720-1-paulo.durrer.melo@gmail.com>
DKIM signature
missing
Download raw message
Patch: +9 -0
Signed-off-by: Paulo Melo <paulo.durrer.melo@gmail.com>
---
 widget/button.go | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/widget/button.go b/widget/button.go
index 9e081d3..53ade08 100644
--- a/widget/button.go
+++ b/widget/button.go
@@ -44,6 +44,14 @@ type Press struct {
	Cancelled bool
}

// Click executes a simple programmatic click
func (b *Clickable) Click() {
	b.clicks = append(b.clicks, Click{
		Modifiers: 0,
		NumClicks: 1,
	})
}

// Clicked reports whether there are pending clicks as would be
// reported by Clicks. If so, Clicked removes the earliest click.
func (b *Clickable) Clicked() bool {
@@ -82,6 +90,7 @@ func (b *Clickable) History() []Press {
	return b.history
}

// Layout and update the button state
func (b *Clickable) Layout(gtx layout.Context) layout.Dimensions {
	b.update(gtx)
	stack := op.Save(gtx.Ops)
-- 
2.26.2

[gio/patches] build success

builds.sr.ht
Details
Message ID
<C90LSUKQ9XZ0.PAII01OAQ2GZ@cirno2>
In-Reply-To
<20210204080924.24720-1-paulo.durrer.melo@gmail.com> (view parent)
DKIM signature
missing
Download raw message
gio/patches: SUCCESS in 19m58s

[Programmatic Click function][0] from [Paulo Melo][1]

[0]: https://lists.sr.ht/~eliasnaur/gio-patches/patches/20023
[1]: mailto:paulo.durrer.melo@gmail.com

✓ #416320 SUCCESS gio/patches/openbsd.yml https://builds.sr.ht/~eliasnaur/job/416320
✓ #416317 SUCCESS gio/patches/apple.yml   https://builds.sr.ht/~eliasnaur/job/416317
✓ #416319 SUCCESS gio/patches/linux.yml   https://builds.sr.ht/~eliasnaur/job/416319
✓ #416318 SUCCESS gio/patches/freebsd.yml https://builds.sr.ht/~eliasnaur/job/416318
Details
Message ID
<C90NYQG845YO.2YMLUOV4B2XAC@testmac>
In-Reply-To
<20210204080924.24720-1-paulo.durrer.melo@gmail.com> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Thanks, merged.

Elias
Reply to thread Export thread (mbox)