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
Rework of search panel with gnome 43 source code #897
Conversation
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.
Cool! This is a diff with many copy-pastes, so it's hard to review.
Will this still work for Gnome < 43?
for (const providerDisplay of this.providerDisplayMap.values()) { | ||
providerDisplay.updateSearch([], []); | ||
} | ||
//this.remove_all_children(); |
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.
Remove debug code?
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.
This is a reset code not debug but I can add a comment and remove the commented code
@@ -349,123 +349,6 @@ declare module 'ui' { | |||
} | |||
} | |||
|
|||
export namespace appDisplay { |
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.
Why remove these? The typings are still correct, even if we are not using them anymore.
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.
Well most of them aren't valid anymore and since the class now exist on our side I felt it was pointless
Well it's should be ! If you are still on gnome 42 It's would be nice for you to try it |
for (let prop in rawMeta) { | ||
// we can use the serialized icon variant directly | ||
if (prop !== 'icon') | ||
unpackedMeta[prop] = metas[i][prop].deepUnpack(); |
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.
unpackedMeta[prop] = metas[i][prop].deepUnpack(); | |
unpackedMeta[prop] = rawMeta[prop].deepUnpack(); |
const rawMeta = metas[i]; | ||
const unpackedMeta: UnpackedMeta = {}; | ||
for (let prop in rawMeta) { | ||
// we can use the serialized icon variant directly |
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.
When do you do this?
Good job! |
Thanks ! |
Since in gnome 43 they changed a lot of code we used for search features I had issues with typings and compatibility so I decided to copy the new gnome 43 source code and add types for it and rework our current search code to use it so previous gnome 43 Material Shell user will get benefit from it.
So following files
are almost basic copy past & typed from gnome-shell source code