~charlotte-team/unity-lens-applications/preload_results

« back to all changes in this revision

Viewing changes to src/daemon.vala

  • Committer: Florian Boucault
  • Date: 2011-04-22 10:52:41 UTC
  • Revision ID: florian@boucault.net-20110422105241-crhs2hdkfujqkti4
Preload results for an empty search at startup resulting on the place results appearing faster to the user the first time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
                  control.dbus_path, error.message);
229
229
      }
230
230
 
 
231
      /* Start a search with an empty string so that the first time the user
 
232
       * goes into the applications place the results appear faster because
 
233
       * they are preloaded */
 
234
      HashTable<string,string> hints;
 
235
      var s = new Search ("", hints);
 
236
      applications.active_search = s;
231
237
    }
232
238
 
233
239
    private void populate_sections ()