~mhr3/libunity/remote-scope-sources

Viewing all changes in revision 89.

  • Committer: Tarmac
  • Author(s): Michal Hruby
  • Date: 2011-11-29 12:37:56 UTC
  • mfrom: (87.2.5 async-friendly-signals)
  • Revision ID: tarmac-20111129123756-r7pii8tkvtfapqqg
This branch provides a new signal "search-changed" which along with the addition of a Cancellable instance tries to make searches more async-friendly.

I made this less complex by cancelling the Cancellable everytime new search is queued, therefore we don't need to check anything. To easily handle the case of doing completely new search when the filters are changed, the scope dev can just connect to filters-changed and call queue_search_changed() himself, but it still also allows you to just filter your results in the filters-changed callback without the need to do new search.

One thing that I'm thinking about is to turn the active-*search properties private and just use this signal - if we want to do this though, the first parameter from queue_search_changed() should be removed.. Fixes: . Reviewed by Mikkel Kamstrup Erlandsen.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: