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



commit 1ef4706a800b120eaea233674a6fbd1cdef23d90
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 d8f3e1da2b..49442769c7 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -695,6 +695,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]