Port UI to GTK 4 #85
Labels
No labels
bug
client
code-quality
duplicate
enhancement
help wanted
in progress
invalid
question
ui
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: coderkun/mcg#85
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MCG currently uses GTK 3 as UI toolkit. Port it to GTK 4 using
libadwaita
with better support for small screens and touch screens.I would love to use mcg/CoverGrid as a jukebox frontend on a raspberry pi with the official 7" screen, right now mcg renders pretty poorly at that resolution, partially off-screen. Thanks for an awesome mpd client regardless!
Thanks for your feedback, @bhartshorn. To support small screen sizes is the main reason to port mcg to GTK 4 and libadwaita. I should probably do this before other tasks.
I started on porting to GTK 4. The basic application is working but there are still many details I need to figure out …
Sounds good, thank you for your work! I'd be happy to help test and possibly contribute now that you have a start. I don't see a branch on gitlab, feel free to ping me if you push one and I'll try to help out.
Thanks a lot, much appreciated. I will try to bring the code into a state that is okay to commit and push tomorrow and will let you know.
I pushed the current work on GTK 4 as branch
issue-85-gtk4
(MR !4). Please be aware that it is still in an early stage.mentioned in issue #90
@coderkun I made some minor modifications to your AUR PKGBUILD to get this branch built and installed, switching the GTK dependency to gtk4 and adding libadwaita. It seems to have worked fine, and builds.
However, trying to run the branch on Archlinux ARM on RasPi 3, I'm getting an error saying
Bus error (core dumped)
. I think I've tracked this down to the following issue with GTK4, ad confirmed thatgtk4-demo
fails with an identical error, so I'm guessing it's an issue with the Archlinux ARM gtk4 package, and nothing to do with your code. I'll keep digging a bit.https://gitlab.gnome.org/GNOME/gtk/-/issues/2890
Further confirmation that it's an Archlinux ARM issue: https://archlinuxarm.org/forum/viewtopic.php?t=16308
It looks like I could probably switch to aarch64 as a solution, I'll see how difficult to modify & recompile the graphene package first, and maybe push on the Archlinux ARM team a bit to see if they'll make the change themselves.
Well, I got it running and it does look nice! But it seems unable to actually load my mpd library. The following errors are printed in the terminal:
Thanks for your tests, @bhartshorn. I will look into this error as soon as time allows.