[gnome-shell/gbsneto/folders-as-dialogs: 6/6] 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: 6/6] appDisplay: Block search when showing app folder dialogs
- Date: Thu, 9 Jan 2020 21:09:56 +0000 (UTC)
commit ba2fb6eab6225a799beb194f47736284131d0582
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 a3d0addad7..b4ba860d75 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -709,6 +709,12 @@ var AllView = GObject.registerClass({
this._eventBlocker.visible = false;
});
}
+
+ // 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]