Go to file
Giovanni Campagna b0be6b8678 RemoteSearch: don't complete a search that was cancelled
This closes a race between setTerms and a slow GetInitialResultSet.
The bug manifests as follows:
- initial search for a short string
- previous results === undefined, call GetInitialResultSet
- user types more, cancel previous search in setTerms()
- mainloop, then _gotResults([])
- previous results === [], !!previous results === true
- therefore call GetSubsearchResultSet with an empty list of results
- _gotResults() from GetSubsearchResultSet is empty
- much later, return from GetInitialResultSet is discarded by
  cancellable
- user unhappy because what he searched for is not there

After this fix, the flow is:
- initial search for a short string
- previous results === undefined, call GetInitialResultSet
- user types more, cancel previous search in setTerms()
- mainloop, but no _gotResults
- previous results === undefined, call GetInitialResultSet again with
  longer string
- some time later, return from first GetInitialResultSet is discarded
  by cancellable
- soon after, return from second GetInitialResultSet comes with good
  results
- user happy

https://bugzilla.gnome.org/show_bug.cgi?id=745861
2015-03-11 13:47:48 -07:00
.settings Convert all JS style to be uniform, add Eclipse settings bits 2008-11-28 20:12:20 +00:00
browser-plugin browser_plugin: Expose version validation boolean 2014-02-19 17:07:38 +01:00
data theme: consistent focus & hover for system menu & popup menu 2015-03-10 21:05:21 +01:00
docs remove shell-slicer 2015-02-20 15:14:44 +01:00
js RemoteSearch: don't complete a search that was cancelled 2015-03-11 13:47:48 -07:00
man Document --clutter-display in the man page 2013-05-16 18:43:52 -04:00
po Updated Bulgarian translation 2015-03-11 20:55:38 +02:00
src Fix the offset calculation again 2015-03-04 10:19:55 -05:00
tests tests: Add menu item without action to gapplication 2015-02-27 15:02:27 +01:00
tools Port gnome-shell to Python 3 2014-11-07 10:18:58 +01:00
.gitignore Update .gitignore 2015-02-20 17:40:45 -08:00
.gitmodules gitmodules: Fix URL for previous commit 2015-02-20 17:08:42 -05:00
.project Convert all JS style to be uniform, add Eclipse settings bits 2008-11-28 20:12:20 +00:00
AUTHORS Initial commit 2008-10-31 04:22:44 +00:00
autogen.sh build: Remove deprecated env vars from autogen call 2015-02-20 20:27:40 +01:00
configure.ac Bump version to 3.15.91 2015-03-04 21:17:31 +01:00
COPYING Changed obsolete FSF postal address. 2014-01-08 04:35:14 +07:00
gnome-shell.doap doap: add <programming-language> 2014-07-31 17:48:46 +02:00
HACKING popupMenu: Remove our custom allocation code 2013-08-13 06:50:25 -04:00
MAINTAINERS MAINTAINERS: Fix my email address 2011-05-23 09:15:58 -04:00
Makefile.am Support disabling browser plugin 2013-10-31 12:44:51 -04:00
NEWS Bump version to 3.15.91 2015-03-04 21:17:31 +01:00
README doap: update URLs 2014-04-04 19:32:09 +02:00

GNOME Shell provides core user interface functions for the GNOME 3 desktop,
like switching to windows and launching applications. GNOME Shell takes
advantage of the capabilities of modern graphics hardware and introduces
innovative user interface concepts to provide a visually attractive and
easy to use experience.

For more information about GNOME Shell, including instructions on how
to build GNOME Shell from source and how to get involved with the project,
see:

 https://wiki.gnome.org/Projects/GnomeShell

Bugs should be reported at http://bugzilla.gnome.org against the 'gnome-shell'
product.

License
=======
GNOME Shell is distributed under the terms of the GNU General Public License,
version 2 or later. See the COPYING file for details.