viewSelector: Remove showApps()
Now that Overview is able to ease into any state, be it window picker or app grid, we can move this ViewSelector method to Overview itself, which is its rightful place to live. Remove ViewSelector.showApps(), and make all callers call Main.overview.show(ControlsState.APP_GRID). Also make sure the show apps button is correctly toggled. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1624>
This commit is contained in:

committed by
Marge Bot

parent
8089d7cbf7
commit
b32f414919
@ -10,6 +10,7 @@ const Main = imports.ui.main;
|
||||
const Screenshot = imports.ui.screenshot;
|
||||
|
||||
const { loadInterfaceXML } = imports.misc.fileUtils;
|
||||
const { ControlsState } = imports.ui.overviewControls;
|
||||
|
||||
const GnomeShellIface = loadInterfaceXML('org.gnome.Shell');
|
||||
const ScreenSaverIface = loadInterfaceXML('org.gnome.ScreenSaver');
|
||||
@ -104,7 +105,7 @@ var GnomeShell = class {
|
||||
}
|
||||
|
||||
ShowApplications() {
|
||||
Main.overview.viewSelector.showApps();
|
||||
Main.overview.show(ControlsState.APP_GRID);
|
||||
}
|
||||
|
||||
GrabAcceleratorAsync(params, invocation) {
|
||||
|
Reference in New Issue
Block a user