Compare commits
1 Commits
citadel
...
wip/fmuell
Author | SHA1 | Date | |
---|---|---|---|
|
078a1bda14 |
@ -101,9 +101,20 @@ var GnomeShell = new Lang.Class({
|
|||||||
Main.osdWindowManager.show(monitorIndex, icon, label, level, maxLevel);
|
Main.osdWindowManager.show(monitorIndex, icon, label, level, maxLevel);
|
||||||
},
|
},
|
||||||
|
|
||||||
FocusApp(id) {
|
FocusAppAsync(params, invocation) {
|
||||||
|
let [id] = params;
|
||||||
|
let appSys = Shell.AppSystem.get_default();
|
||||||
|
if (appSys.lookup_app(id) == null) {
|
||||||
|
invocation.return_error_literal(
|
||||||
|
Gio.DBusError,
|
||||||
|
Gio.DBusError.FILE_NOT_FOUND,
|
||||||
|
`No application with ID ${id}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.ShowApplications();
|
this.ShowApplications();
|
||||||
Main.overview.viewSelector.appDisplay.selectApp(id);
|
Main.overview.viewSelector.appDisplay.selectApp(id);
|
||||||
|
invocation.return_value(null);
|
||||||
},
|
},
|
||||||
|
|
||||||
ShowApplications() {
|
ShowApplications() {
|
||||||
|
Loading…
Reference in New Issue
Block a user