~indicator-applet-developers/ubuntu/precise/indicator-appmenu/upstream

« back to all changes in this revision

Viewing changes to src/hudquery.c

  • Committer: Charles Kerr
  • Date: 2012-04-05 16:19:32 UTC
  • mfrom: (1.4.2)
  • Revision ID: charles.kerr@canonical.com-20120405161932-rf6899hc99e99pmb
* New upstream release.
  * Faster searches and better search results. (lp: #947283, lp: #972354)
  * Don't submit searches with zero tokens. (lp: #973203)
  * Propertly emit the WindowUnregistered signal when windows go away.
  * Improvements to the gcov automake rules.
  * Fix bootstrap error in tests.
  - reduce hud cpu usage and DoS on long strings (lp: #938584, lp: #948820)

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
 
108
108
  g_ptr_array_set_size (query->results, 0);
109
109
 
110
 
  if (query->search_string[0] != '\0')
 
110
  if (hud_token_list_get_length (query->token_list) != 0)
111
111
    hud_source_search (query->source, query->results, query->token_list);
112
112
 
113
113
  g_ptr_array_foreach (query->results, hud_query_find_max_usage, &max_usage);