mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
js: Use async D-Bus wrappers
After porting the more complex cases - in particular those that affect a module's API - we are left with straight-forward D-Bus method calls that can be moved to promise-based wrappers in one go. For consistency, this also switches from Remote to Async where the call result is ignored. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2344>
This commit is contained in:
parent
a3db909383
commit
637ee7386e
23 changed files with 462 additions and 496 deletions
|
|
@ -302,7 +302,7 @@ var RemoteSearchProvider = class {
|
|||
}
|
||||
|
||||
activateResult(id) {
|
||||
this.proxy.ActivateResultRemote(id);
|
||||
this.proxy.ActivateResultAsync(id).catch(logError);
|
||||
}
|
||||
|
||||
launchSearch(_terms) {
|
||||
|
|
@ -321,10 +321,12 @@ var RemoteSearchProvider2 = class extends RemoteSearchProvider {
|
|||
}
|
||||
|
||||
activateResult(id, terms) {
|
||||
this.proxy.ActivateResultRemote(id, terms, global.get_current_time());
|
||||
this.proxy.ActivateResultAsync(
|
||||
id, terms, global.get_current_time()).catch(logError);
|
||||
}
|
||||
|
||||
launchSearch(terms) {
|
||||
this.proxy.LaunchSearchRemote(terms, global.get_current_time());
|
||||
this.proxy.LaunchSearchAsync(
|
||||
terms, global.get_current_time()).catch(logError);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue