[gnome-shell/gbsneto/folders-as-dialogs: 15/15] appDisplay: Block search when showing app folder dialogs



commit f7620b385a6f5f16b8411c2a691d02b40757db2e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Jan 9 17:44:22 2020 -0300

    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 05320f75cc..1346b93fea 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 3f22a47b4e..82c326b105 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);


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