-
Notifications
You must be signed in to change notification settings - Fork 261
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
refactor: GNOME 46 port #1704
refactor: GNOME 46 port #1704
Conversation
It looks like .add() and .add_actor() were removed in GNOME 46. Replacing these with .add_child() seems to work. With these changes I'm able to successfully install and use the extension on GNOME 46 RC. oae/gnome-shell-pano#259 https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/350cd296fa90adb3d18f9b375b5531077cff825a
Is this backwards compatible to gnome 45? |
Yes, as far as I can tell. |
These might have to be modified, but I "ported" (maybe only partially, idk tbh) an existing installation from the AUR package to gnome 46 by going in the extensions directory and using the following commands: sudo sed -i 's/add_actor/add_child/g' context.js panel_settings.js search.js stack.js (This was also after applying all of the existing patches this pr has as of posting) |
There's another Edit to add: and two more in src/search.ts: L344 and L367. Without these, the launcher shows no entries. Note that even with these fixes the launcher is visually a bit off; the items are now oddly centered. |
Hi, is this PR ready to be merged? I am currently testing it on my PC and it works without problems. |
Not yet. The QA team needs to make sure no regressions are introduced in Pop 22.04. |
@leviport this won't work in Pop 22.04, which is why it is targeting the master_mantic branch. It should work on GNOME 45 and 46. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sorry about that, I missed that it wasn't going into master
. Since it's not touching Jammy, I see no reason to test for regressions.
@carlwgeorge do you want to address @spladug's comment before merging? |
I can make a follow-up PR if that's easier for everyone. |
It looks like
.add()
and.add_actor()
were removed in GNOME 46. Replacing these with.add_child()
seems to work. With these changes I'm able to successfully install and use the extension on GNOME 46 RC.oae/gnome-shell-pano#259
https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/350cd296fa90adb3d18f9b375b5531077cff825a