~mhr3/libunity/remote-scope-sources

« back to all changes in this revision

Viewing changes to src/unity-lens-private.vala

  • Committer: Tarmac
  • Author(s): Michal Hruby
  • Date: 2011-12-06 11:55:52 UTC
  • mfrom: (92.2.8 libunity)
  • Revision ID: tarmac-20111206115552-6bxqw8z5xqiplpy6
Removes redundant models and further breaks the API - models are no longer public properties of Scope, you need to use results_model in LensSearch. This will allow us more easily to switch local scopes to use models other than Dee.SharedModel.. Fixes: . Appoved by Mikkel Kamstrup Erlandsen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
    /* Because we need to manipulate it straight away, we have to wait until it's
201
201
     * synchronized
202
202
     */
203
 
    if (scope is ScopeProxyRemote && scope.filters_model.synchronized == false)
 
203
    if (scope is ScopeProxyRemote && (scope.filters_model as Dee.SharedModel).synchronized == false)
204
204
    {
205
205
      scope.filters_model.notify["synchronized"].connect (() =>
206
206
      {
257
257
        uint64 seqnum = seqnum_v.get_uint64 ();
258
258
        if (scope.results_model.get_seqnum () < seqnum)
259
259
        {
260
 
          // FIXME: wait for a signal once Dee provides one for this
 
260
          // FIXME: wait for a signal once Dee provides one for this;
 
261
          // otherwise this will cause problems especially for remote scopes;
 
262
          // moreover once we do private model connections we really need some
 
263
          // signal here
261
264
          warning ("Scope model [%p] sequence number mismatch: expected %" + uint64.FORMAT + ", got %" + uint64.FORMAT, scope, seqnum, scope.results_model.get_seqnum ());
262
265
        }
263
266
      }