From 2d3a070d34707ad8960e95433990d15948ef7e80 Mon Sep 17 00:00:00 2001 From: Jerome Le Saux Date: Thu, 25 Apr 2024 09:07:12 +0200 Subject: [PATCH] add: update editor widget version with keyevent --- go.mod | 2 +- go.sum | 4 ++++ ui/martine-ui/image_tab.go | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 822452a..38934c2 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,6 @@ require ( github.com/esimov/colorquant v1.0.0 github.com/esimov/dithergo v0.0.0-20210215145655-7f9ddf55e848 github.com/jeromelesaux/dsk v0.0.0-20230417191026-0e405580626b - github.com/jeromelesaux/fyne-io v0.0.0-20240423152922-6b0078cfa196 github.com/jeromelesaux/m4client v0.0.0-20230327092026-4e80fd2b1474 github.com/jeromelesaux/zx0 v0.0.0-20220922122216-619a0141f9e0 github.com/mccutchen/palettor v1.0.0 @@ -35,6 +34,7 @@ require ( github.com/godbus/dbus/v5 v5.1.0 // indirect github.com/goki/freetype v1.0.1 // indirect github.com/gopherjs/gopherjs v1.17.2 // indirect + github.com/jeromelesaux/fyne-io v0.0.0-20240425064507-610406c0b788 // indirect github.com/jsummers/gobmp v0.0.0-20230614200233-a9de23ed2e25 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/muesli/clusters v0.0.0-20200529215643-2700303c1762 // indirect diff --git a/go.sum b/go.sum index a43ce48..cb73327 100644 --- a/go.sum +++ b/go.sum @@ -226,6 +226,10 @@ github.com/jeromelesaux/dsk v0.0.0-20230417191026-0e405580626b h1:KMI+CK5VfgVD/k github.com/jeromelesaux/dsk v0.0.0-20230417191026-0e405580626b/go.mod h1:yF2+YgO/6yWlK932z+qKOU8wY5rrbtsYAPlSXHfxIS8= github.com/jeromelesaux/fyne-io v0.0.0-20240423152922-6b0078cfa196 h1:UtPAfecWsVfoHk9gn/zWyho7w8UVwIrkgwkRaeJN7XM= github.com/jeromelesaux/fyne-io v0.0.0-20240423152922-6b0078cfa196/go.mod h1:PHMS7sRywpN563NOk5OKuI4LS6dEo7dZFfvApM6z/AE= +github.com/jeromelesaux/fyne-io v0.0.0-20240424201921-5a02d23e5faf h1:C88j4zAYSBfBSO3wAhlx9xYoiRQRS1aLqGLyhQf8jAk= +github.com/jeromelesaux/fyne-io v0.0.0-20240424201921-5a02d23e5faf/go.mod h1:PHMS7sRywpN563NOk5OKuI4LS6dEo7dZFfvApM6z/AE= +github.com/jeromelesaux/fyne-io v0.0.0-20240425064507-610406c0b788 h1:DJghXRtc3RsXPkKAPL5kwCudNAodL/nKJsqva+20WDE= +github.com/jeromelesaux/fyne-io v0.0.0-20240425064507-610406c0b788/go.mod h1:PHMS7sRywpN563NOk5OKuI4LS6dEo7dZFfvApM6z/AE= github.com/jeromelesaux/m4client v0.0.0-20200309212559-efb59c22369c/go.mod h1:JO0ijl8YXO6FxogJoC3yAFbBjSAnkwFquc8W6C7k94E= github.com/jeromelesaux/m4client v0.0.0-20230327092026-4e80fd2b1474 h1:CWtkpA4Q63pkhHWRrd/e98JD4YVZhk3SZu58bUkQsuI= github.com/jeromelesaux/m4client v0.0.0-20230327092026-4e80fd2b1474/go.mod h1:Xc0HzC2TZ7fbDWyB8LosvziBQ5QvvwVt3xxAIEavWRc= diff --git a/ui/martine-ui/image_tab.go b/ui/martine-ui/image_tab.go index e10f0ac..83174d2 100644 --- a/ui/martine-ui/image_tab.go +++ b/ui/martine-ui/image_tab.go @@ -365,7 +365,8 @@ func (m *MartineUI) newImageTransfertTab(me *menu.ImageMenu) *fyne.Container { edit := editor.NewEditor(me.CpcImage().Image, editor.MagnifyX2, me.Palette(), - p, me.SetImagePalette) + p, me.SetImagePalette, + m.window) d := dialog.NewCustom("Editor", "Ok", edit.NewEditor(), m.window) size := m.window.Content().Size()