-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for GNOME 43 #69
base: master
Are you sure you want to change the base?
Conversation
Sorry I missed this. Must have got lost in the noise. I will test this out after work today and if all goes well merge it. Thanks. |
That's what I was afraid of. We may be missing a style class or something? The goal ofc is to match the width of the menu on the far right (whatever they're calling it now?) as it did in previous releases. |
I just found they have QuickSettingsLayout as replacement. |
Using QuickSettingsLayout it looks like this: I just copied the entire thing to This isn't a clean way of doing this but probably maintains compatibility with older versions of GNOME. |
That doesn't look right either though. |
https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/gnome-42/js/ui/panel.js |
That's the commit of this PR |
I'm pretty sure it depends on a style class to set the width. |
|
Both functions are present in QuickSettings, however they are a lot more complicated. |
The layout doesn't set the width it just makes sure everything stays the proper size. The Aggregate menu style class sets the width. I'm looking for a replacement for that if it exists. |
If a suitable replacement does not exist we can create our own. I'd rather not do that though. I'd rather it be a built-in style class so the extension matched whatever theme more. |
I might be totally missing something here, messing around locally I noticed that commenting out line #1427 fixes the width issue. This part could be totally essential and I'm missing something, tried Rhythmbox, YT Music and Youtube - all seem to work well. |
I tested this patch along with commenting out line 1427 as @giinuu suggested and it's working great for me. Thanks for everyone who tested and contributing :) Would be great for others if this got a bit of attention. |
Commenting 1427 negates this PR, indeed is the only change the extension needs to run on 43/44 |
Is it still working for you on 44 @Moon-0xff ? Fedora 38 throws an JS error for me:
|
@Mershl I can't test right now but probably you are commenting the wrong line. If you are starting from JasonLG1979:master the line number is 1428. The line to comment is this one: |
I'm seeing a seperate issue on 44 regarding the default IconTheme, that is also mentioned in the porting guide of 44 (linked in my previous post). I was just curious why it was working for you on 44, but maybe this interface change was introduced late. |
I tested this when 44 was still in beta so yeah, might be a change introduced after my tests. Have you tried to replace the |
seems to work nicely on 44. I'm not sure when St12, the first version of this API supporting |
It simply adds the removed code for
AggregateLayout
towidgets.js
This is a quick and simple fix for my own testing purposes, so don't expect much of it :P