[gnome-documents] application: propagate the shell search terms when opening item
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application: propagate the shell search terms when opening item
- Date: Fri, 14 Dec 2012 13:05:17 +0000 (UTC)
commit 3fb2069f59ec1a700229393238e320611f5b490f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Dec 13 23:42:55 2012 -0500
application: propagate the shell search terms when opening item
So that we can go back to the full search when launched from the shell
and the back button is pressed.
src/application.js | 2 ++
src/embed.js | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 36666ce..85da76f 100644
--- a/src/application.js
+++ b/src/application.js
@@ -461,6 +461,8 @@ const Application = new Lang.Class({
modeController.setWindowMode(WindowMode.WindowMode.PREVIEW);
this.activate();
+ searchController.setString(terms.join(' '));
+
let doc = documentManager.getItemById(urn);
if (doc) {
documentManager.setActiveItem(doc);
diff --git a/src/embed.js b/src/embed.js
index 8d56cfc..25639e5 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -407,6 +407,10 @@ const Embed = new Lang.Class({
},
_onQueryStatusChanged: function() {
+ let windowMode = Application.modeController.getWindowMode();
+ if (windowMode != WindowMode.WindowMode.OVERVIEW)
+ return;
+
let queryStatus = Application.trackerController.getQueryStatus();
if (queryStatus) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]