From f7620b385a6f5f16b8411c2a691d02b40757db2e Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 9 Jan 2020 17:44:22 -0300 Subject: [PATCH] appDisplay: Block search when showing app folder dialogs Also following design guidance, make the search entry insensitive when showing an app folder dialog. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/896 --- js/ui/appDisplay.js | 6 ++++++ js/ui/overview.js | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 05320f75c..1346b93fe 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -694,6 +694,12 @@ var AllView = GObject.registerClass({ }); } this._updateIconOpacities(isOpen); + + // Toggle search entry + Main.overview.searchEntry.reactive = !isOpen; + Main.overview.searchEntry.clutter_text.reactive = !isOpen; + Main.overview.searchEntry.clutter_text.editable = !isOpen; + this._displayingPopup = isOpen; }); } diff --git a/js/ui/overview.js b/js/ui/overview.js index 3f22a47b4..82c326b10 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -689,5 +689,9 @@ var Overview = class { return this.dash.showAppsButton; } + + get searchEntry() { + return this._overview.searchEntry; + } }; Signals.addSignalMethods(Overview.prototype);