Gtk4.jl icon indicating copy to clipboard operation
Gtk4.jl copied to clipboard

Regressions to Gtk.jl

Open tknopp opened this issue 2 years ago • 7 comments

The purpose of this issue is to track regressions compared to Gtk.jl, which will help us to find a good moment for migration of packages.

Mac

  • [x] Windows are popping up in the lower right corner (fixed by GTK4_jll 4.6.9)
  • [ ] Windows are opened in the background
  • [x] I have sometimes segfaults when resizing the window (fixed by GTK4_jll 4.6.9)

tknopp avatar Dec 28 '22 08:12 tknopp

Windows

  • [X] Fullscreen doesn't work (fixed by GTK4_jll 4.6.9)
  • [x] Pressing buttons inside dialogs doesn't work (seems to be fixed by GTK4_jll 4.6.9)

jwahlstrand avatar Dec 28 '22 13:12 jwahlstrand

GTK4_jll 4.6.9 is now available. I'm finding that on my Mac, windows are no longer in the lower right corner. They still open behind the Julia terminal but in front of other windows. I haven't seen the segfault issue myself.

jwahlstrand avatar Dec 29 '22 15:12 jwahlstrand

So the only regression I see is that the Windows on Mac are not opened on top. In my opinion this should not be a show-stopper for the Gtk4 migration. Thought's?

I would like to change Winston.jl very soon to Gtk4, which we can probably use as a first test since it has almost no users. Another idea is then to integrate Gtk4.jl with CairoMakie.jl, see https://github.com/MakieOrg/Makie.jl/issues/568#issuecomment-1364508362

tknopp avatar Jan 05 '23 10:01 tknopp

I agree, that's annoying but not terribly so. At some point I will take a shot at updating the JLL to the latest in the 4.8 series. If it's not fixed there we might want to open an issue upstream.

Go for it, if someone wants to use Winston with Gtk.jl they can always pin the Winston version, right?

I have done some work on integrating Gtk4.jl with GLMakie in https://github.com/JuliaGtk/Gtk4Makie.jl. It sort of works on Linux, including interactivity, but my goal is a GLMakie widget and right now you can only have one per window. Attempts to fix this have met resistance so far. It seems like CairoMakie would be easier.

jwahlstrand avatar Jan 05 '23 13:01 jwahlstrand

I think we want both, CairoMakie and GLMakie integration. How to properly put this into packages is unclear to me. Package extensions will likely change how we structure packages. In this particular case having a "Gtk4" package extension in CairoMakie.jl seems to be a good solution. But this is only theoretical. I have no experience so far.

tknopp avatar Jan 05 '23 13:01 tknopp

Go for it, if someone wants to use Winston with Gtk.jl they can always pin the Winston version, right?

yep, exactly. I will make a major version bump.

tknopp avatar Jan 05 '23 13:01 tknopp

Winston migration done: https://github.com/JuliaRegistries/General/pull/75168 :-)

tknopp avatar Jan 05 '23 21:01 tknopp

ProfileView has been updated to use Gtk4.jl. Seems as good a time as any to close this.

jwahlstrand avatar Aug 19 '24 19:08 jwahlstrand