~eliasnaur/gio-patches

gio: layout: skip zero value Inset v1 PROPOSED

~pierrec
~pierrec: 1
 layout: skip zero value Inset

 1 files changed, 3 insertions(+), 0 deletions(-)
#509379 apple.yml success
#509380 freebsd.yml success
#509381 linux.yml failed
#509382 openbsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eliasnaur/gio-patches/patches/22810/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gio] layout: skip zero value Inset Export this patch

~pierrec
From: pierre <pierre.curto@gmail.com>

Signed-off-by: pierre <pierre.curto@gmail.com>
---
-

 layout/layout.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/layout/layout.go b/layout/layout.go
index a13572e..89080ea 100644
--- a/layout/layout.go
+++ b/layout/layout.go
@@ -118,6 +118,9 @@ type Inset struct {

// Layout a widget.
func (in Inset) Layout(gtx Context, w Widget) Dimensions {
	if in == (Inset{}) {
		return w(gtx)
	}
	top := gtx.Px(in.Top)
	right := gtx.Px(in.Right)
	bottom := gtx.Px(in.Bottom)
-- 
2.30.2
builds.sr.ht
gio/patches: FAILED in 23m52s

[layout: skip zero value Inset][0] from [~pierrec][1]

[0]: https://lists.sr.ht/~eliasnaur/gio-patches/patches/22810
[1]: mailto:pierre.curto@gmail.com

✗ #509381 FAILED  gio/patches/linux.yml   https://builds.sr.ht/~eliasnaur/job/509381
✓ #509382 SUCCESS gio/patches/openbsd.yml https://builds.sr.ht/~eliasnaur/job/509382
✓ #509380 SUCCESS gio/patches/freebsd.yml https://builds.sr.ht/~eliasnaur/job/509380
✓ #509379 SUCCESS gio/patches/apple.yml   https://builds.sr.ht/~eliasnaur/job/509379
You know what I'm going to ask :) Does this change result in any real
speedup?

Elias