diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-12-10 15:47:25 -0500 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-12-10 17:44:28 -0500 |
commit | 3124e82838294ec958f635c917a652ecab58a7d3 (patch) | |
tree | 22728c8ab3fc9a081b24cda5cb50b81ddb059299 | |
parent | 6c4daaaa71f5d829b21ef4d853a911375f9e3240 (diff) | |
download | gnome-shell-wip/re-search-v2.tar.gz |
search: make sure to pass a timestamp to LaunchSearch()wip/re-search-v2
Do not repeat past mistakes while we're still in time.
https://bugzilla.gnome.org/show_bug.cgi?id=690009
-rw-r--r-- | data/org.gnome.ShellSearchProvider2.xml | 2 | ||||
-rw-r--r-- | js/ui/remoteSearch.js | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/data/org.gnome.ShellSearchProvider2.xml b/data/org.gnome.ShellSearchProvider2.xml index 5719f09be..26b213d57 100644 --- a/data/org.gnome.ShellSearchProvider2.xml +++ b/data/org.gnome.ShellSearchProvider2.xml @@ -75,11 +75,13 @@ <!-- LaunchSearch: @terms: Array of search terms, which the provider should treat as logical AND. + @timestamp: A timestamp of the user interaction that triggered this call Asks the search provider to launch a full search in the application for the provided terms. --> <method name="LaunchSearch"> <arg type="as" name="terms" direction="in" /> + <arg type="u" name="timestamp" direction="in" /> </method> </interface> </node> diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js index bf09ded8b..9ac697209 100644 --- a/js/ui/remoteSearch.js +++ b/js/ui/remoteSearch.js @@ -50,6 +50,7 @@ const SearchProvider2Iface = <interface name="org.gnome.Shell.SearchProvider2"> </method> <method name="LaunchSearch"> <arg type="as" direction="in" /> + <arg type="u" direction="in" /> </method> </interface>; @@ -290,6 +291,6 @@ const RemoteSearchProvider2 = new Lang.Class({ }, launchSearch: function(terms) { - this.proxy.LaunchSearchRemote(terms); + this.proxy.LaunchSearchRemote(terms, global.get_current_time()); } }); |