From Elias Naur to ~eliasnaur/gio
On Sat, 18 Jan 2025 at 04:45, zhang zj <zhangzj33@gmail.com> wrote: > > > Not that I know of. Note that I'm very much not an expert in IME and my > > efforts in that area has so far been to make the minimally viable > > implementation capable of working across platforms. > > I'd love your input as to how you think would be a better way, or > > extensions such as composition commit. One thing to know is whether > > such information is generally available from ~all platforms. > > > > Thanks for your great work! I agree that Gio only provides minimally viable > implementation for what can also be done in the application layer. But I would > be nice to have more support for general tasks from the framework layer. > The IME behavior I reported above is ok for latin scripts, but I think
From Elias Naur to ~eliasnaur/gio
On Fri, 17 Jan 2025 at 09:05, zhang zj <zhangzj33@gmail.com> wrote: > > Hi, > > I tried to understand the how the IME works with Gio text editing > recently. There is a little problem > I found hard to handle. For each pre-composition, Gio sent a > key.EditEvent and a key.SelectionEvent. > The pre-composed text is inserted into the text buffer which is > important for visual cues. But there's a problem. > Undo operation would handle the pre-composed text as well, which makes > the undo look weird. > > And in my case of using a Piece table buffer, the pre-composed texts
From Elias Naur to ~eliasnaur/gio-patches
I think there's a comment about the abs function that is unanswered. Also, it would be nice with a test case so that future changes to this subtle area keeps corner cases working Elias
From Elias Naur to ~eliasnaur/gio-patches
Nice, merged. Thanks, Elias
From Elias Naur to ~eliasnaur/gio-patches
On Thu Jan 9, 2025 at 2:15 AM CET, Chris Waldon wrote: > In order to avoid DLL preloading attacks, we should always load our system > dependencies using the helper that only searches the system library path. > > Thanks to Mohsen Mirzakhani and Utkarsh Satya Prakash for bringing this to > our attention. > Thanks. I applied the change to package app (kernel32.dll is a system dll). Are you sure you want EGL and GLES loaded from the system DLL directory only? What if a program supplies its own EGL/GLES libraries along with its executable? I *think* I remember Plato doing this. > Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
From Elias Naur to ~eliasnaur/gio
On Thu, 31 Oct 2024 at 09:13, Stephan <stephan.lukits@gmail.com> wrote: > and the following happened; any ideas? > ``` > ~/go/src/hellogio $ go build . > # example.com/rpi3/hellogio > mon-x11 -lxkbcommon -lX11-xcb -lX11 -lxcb -lXcursor -lXfixes -O2 -g -lEGL -O2 -g -ldl -lwayland-client -O2 -g -lpthread -O2 -g -lxkbcommon -O2 -g -O2 -g -lm -lm -lm -lm -lm -lm -lm -O2 -g -O2 -g -ldl -no-pie > /usr/bin/ld: error: $WORK/b001/exe/a.out uses VFP register arguments, /tmp/go-link-775134620/000047.o does not > /usr/bin/ld: failed to merge target specific data of file /tmp/go-link-775134620/000047.o This looks like Go builds with the software floating point ABI and gcc does not. Perhaps experiment with GOARM (https://tip.golang.org/doc/go1.22#arm) and its softfloat and hardfloat directives.
From Elias Naur to ~eliasnaur/gio-patches
Thank you. I forgot to ask you to sign off your change, so I added a Signed-off-by line by you because of my high latency. Please reply to this email and let me know whether you agree to the DCO https://developercertificate.org/ that the sign-off line implies. Thanks, Elias
From Elias Naur to ~eliasnaur/gio-patches
On Tue Oct 1, 2024 at 4:17 AM CEST, Jeff Williams wrote: > This change generates keypress and release events for modifier keys in > MacOS. Specifically the Control, Alt, Shift and Command keys. > --- Thank you for working on this. I've been more than usually busy and I apologize for the delayed review. > app/os_macos.go | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ > app/os_macos.m | 4 ++++ > 2 files changed, 54 insertions(+) > > diff --git a/app/os_macos.go b/app/os_macos.go > index d62bb645..77d69e1b 100644
From Elias Naur to ~eliasnaur/gio-patches
On Mon, 2 Sept 2024 at 20:19, Anthony Starks <ajstarks@gmail.com> wrote: > > References: https://todo.sr.ht/~eliasnaur/gio/500 > > diff --git a/widget/material/theme.go b/widget/material/theme.go > index 3da7f4e7..0ed497a6 100644 > --- a/widget/material/theme.go > +++ b/widget/material/theme.go > @@ -58,8 +58,8 @@ func NewTheme() *Theme { > t.Palette = Palette{ > Fg: rgb(0x000000), > Bg: rgb(0xffffff), > - ContrastBg: rgb(0x3f51b5), > - ContrastFg: rgb(0xffffff),
From Elias Naur to ~eliasnaur/gio
On Tue, 30 Jul 2024 at 08:33, <masala@riseup.net> wrote: > > I'm updating my project that uses gio to v0.0.7 and trying to figure out > how to get the contents of the clipboard (on wayland); here's a > simplified example of what I'm doing: > > ``` > func (p *Page) Layout(gtx layout.Context) layout.Dimensions { > ... snip ... > if p.foo.Clicked(gtx) { > gtx.Execute(clipboard.ReadCmd{Tag: p}) > } > > // not getting any events