[gnome-shell/T27795: 114/138] search: Switch to the icon grid when activating system actions



commit da3af01d6bdeeced03578e3765bdc0c3ece349bf
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Wed Sep 20 17:59:03 2017 +0100

    search: Switch to the icon grid when activating system actions
    
    Upstream hides the overview when a system action is activated from
    the results panel, which is perfectly fine since GNOME Shell is not
    normally showing the overview.
    
    However, in Endless we want to get back to the desktop once a system
    action is activated, which means not leaving the overview and thus
    requires this small change just to get the results panel closed.
    
    https://phabricator.endlessm.com/T19320

 js/ui/appDisplay.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index fcb65a7c7a..b9a804b638 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -16,6 +16,7 @@ const Main = imports.ui.main;
 const MessageTray = imports.ui.messageTray;
 const PageIndicators = imports.ui.pageIndicators;
 const PopupMenu = imports.ui.popupMenu;
+const ViewSelector = imports.ui.viewSelector;
 const Search = imports.ui.search;
 const Params = imports.misc.params;
 const Util = imports.misc.util;
@@ -2361,6 +2362,6 @@ Signals.addSignalMethods(AppIconMenu.prototype);
 var SystemActionIcon = class SystemActionIcon extends Search.GridSearchResult {
     activate() {
         SystemActions.getDefault().activateAction(this.metaInfo['id']);
-        Main.overview.hide();
+        Main.overview.viewSelector.show(ViewSelector.ViewPage.APPS);
     }
 };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]