[gnome-shell/gbsneto/folders-as-dialogs: 16/16] appDisplay: Block search when showing app folder dialogs
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/folders-as-dialogs: 16/16] appDisplay: Block search when showing app folder dialogs
- Date: Fri, 10 Jan 2020 18:27:27 +0000 (UTC)
commit 3a68870260254b5f693657450429ff782ecfbdf2
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 7e0c157966..3cd9b1dc80 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -712,6 +712,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]