~eliasnaur

~eliasnaur/gio-patches

Last active 8 hours ago

~eliasnaur/gio

Last active 5 days ago
View more

Recent activity

Re: [gio/patches] build failed 23 hours ago

From Elias Naur to ~eliasnaur/gio-patches

Merged.

Thanks,
Elias

Re: Gio v0.5.1 API changes a month ago

From Elias Naur to ~eliasnaur/gio

On Fri, 8 Mar 2024 at 11:12, Felix Lange <fjl@twurst.com> wrote:
> On Android (and possibly iOS), when the user switches away from an app, the app
> goes to the background and might be terminated later. In one of my apps, I used
> StageEvent as the trigger to persist state at that time. While this could in theory
> also be done on DestroyEvent, it might not be the correct time since the OS may place
> a tight timeout on app destruction.
>

Good point. The problem with "active"/"visible" etc. is that they're
not portable (Wayland
doesn't report any of these states), whereas window focus (seems to) be.

Would ConfigEvent.Focused == false be a good replacement? If not, I'd
be ok with a

Re: [PATCH gio] app: [X11] implement more correct window lifetimes a month ago

From Elias Naur to ~eliasnaur/gio-patches

Sorry for the late reply; I was waiting for #555 to be resolved. If you can
confirm this patch still works with the current main, I'll merge it.

Thank you,
Elias

On Wed, 17 Jan 2024 at 10:36, Dominik Honnef <dominik@honnef.co> wrote:
>
> We cannot assume that our window has been mapped just because we called
> XMapWindow. Furthermore, we cannot assume that the window size specified
> in XCreateWindow is the size our window has. In both cases, a window
> manager can interject and decide to delay mapping us, as well as
> configure our window differently. Thus we must wait for a MapNotify
> event before switching to the "running" stage. By the time we get the

Re: [PATCH gio v3] fix comment a month ago

From Elias Naur to ~eliasnaur/gio-patches

Please squash fixups with the base commits.

Thanks,
Elias

On Wed, 28 Feb 2024 at 16:46, fiurthorn <raistlin77sjw@gmail.com> wrote:
>
> ---
>  app/os.go | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/app/os.go b/app/os.go
> index d27047f5..ea5b8abb 100644
> --- a/app/os.go

Re: [PATCH gio v2] add system theme option a month ago

From Elias Naur to ~eliasnaur/gio-patches

On Tue, 27 Feb 2024 at 07:19, fiurthorn <raistlin77sjw@gmail.com> wrote:
>
> Signed-off-by: fiurthorn <raistlin77sjw@gmail.com>
> ---
>  app/os.go     |  3 +++
>  app/window.go | 10 ++++++++++
>  2 files changed, 13 insertions(+)
>
> diff --git a/app/os.go b/app/os.go
> index 39595d8f..d27047f5 100644
> --- a/app/os.go
> +++ b/app/os.go
> @@ -36,6 +37,8 @@ type Config struct {
>         // NavigationColor is the color of the navigation bar

Re: Gio News, February 2024 a month ago

From Elias Naur to ~eliasnaur/gio

On Thu, 15 Feb 2024 at 14:00, Chris Waldon
<christopher.waldon.dev@gmail.com> wrote:
>
> Hi all,
>
> The latest news describing changes in Gio v0.5.0 is available here:
>
> https://gioui.org/news/2024-02
>

Great read, as always. Thank you very much for converting gio-x and example.

Elias

Re: Mobile back button doesn't seem to register 2 months ago

From Elias Naur to ~eliasnaur/gio

On Fri, 19 Jan 2024 at 15:45, <kennedy@dreacotgroup.com> wrote:
>
> > The Android back button should trigger [key.Back] key events; if it
> > doesn't let me know
>
> Currently it doesn't from my tests, also gotten complaints from users of
> the app
> https://play.google.com/store/apps/details?id=com.dreacotdigital.cryptopower.testnet

I tested the gioui.org/example/ghophers example in my Pixel 6a and back
seems to work: I pressed one of the contributors, saw the commit details screen
and pressed back to go back to the main screen.

Thanks,

Re: Can't dismiss keyboard on mobile 2 months ago

From Elias Naur to ~eliasnaur/gio

On Tue, 16 Jan 2024 at 01:14, do justin <justindo.works@gmail.com> wrote:
>
> > Hmm, doesn't the OS provide a means to hide the
>
> > keyboard? I guess I
>
> > can only speak for my version of android, but I have a > button for it.
>
> > If not, you could modify the application to dismiss the > keyboard when
>
> > the editor loses focus.
>
>
>

Re: Adding Cryptopower to showcase 2 months ago

From Elias Naur to ~eliasnaur/gio

On Thu, 18 Jan 2024 at 04:51, Kennedy Izuegbu <kennedy@dreacotgroup.com> wrote:
>
> Hi Elias,
>
> I think the Cryptopower Wallet is mature enough to add to showcase on the gio landing page
>

Hi Egon,

I agree with Kennedy that the screenshots from
https://github.com/crypto-power/cryptopower
look good. Can you please add them to the showcases?

Thank you,

Re: Can't dismiss keyboard on mobile 2 months ago

From Elias Naur to ~eliasnaur/gio

On Mon, 15 Jan 2024 at 00:59, <kennedy@dreacotgroup.com> wrote:
>
> > Is this Android or iOS?
>
> This is on iOS
>
> > but I'm actually not sure what the expected behavior is on iOS.
>
> Tapping outside the keyboard should dismiss the keyboard, that's the
> expected behaviour for ios.

Yeah, that's done manually by the program in Gio. I don't know of a
general rule we can
implement globally in Gio for this.