~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
<20210203221152.21287-1-paulo.durrer.melo@gmail.com>
DKIM signature
missing
Download raw message
Patch: +9 -0
---
 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 failed

builds.sr.ht
Details
Message ID
<C9093JOIGET3.NGUZW5MNUTG0@cirno2>
In-Reply-To
<20210203221152.21287-1-paulo.durrer.melo@gmail.com> (view parent)
DKIM signature
missing
Download raw message
gio/patches: FAILED in 20m19s

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

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

✗ #416050 FAILED  gio/patches/linux.yml   https://builds.sr.ht/~eliasnaur/job/416050
✓ #416048 SUCCESS gio/patches/apple.yml   https://builds.sr.ht/~eliasnaur/job/416048
✓ #416051 SUCCESS gio/patches/openbsd.yml https://builds.sr.ht/~eliasnaur/job/416051
✓ #416049 SUCCESS gio/patches/freebsd.yml https://builds.sr.ht/~eliasnaur/job/416049
Details
Message ID
<C90L77DX5JCW.1C2DU8ZA4JZFL@testmac>
In-Reply-To
<20210203221152.21287-1-paulo.durrer.melo@gmail.com> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
LGTM. The linux builder failed because your patch is not signed off.
See https://gioui.org/doc/contribute for what signing off a patch means,
and how to instruct git to sign off.

Elias
Reply to thread Export thread (mbox)