~ubuntu-branches/ubuntu/precise/unity-lens-music/precise

« back to all changes in this revision

Viewing changes to src/banshee-scope.vala

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2012-02-03 11:33:57 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20120203113357-yop2ipbkuwiizbih
Tags: upstream-5.2.0
ImportĀ upstreamĀ versionĀ 5.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
      }
92
92
    }
93
93
 
94
 
    public override void perform_search (LensSearch? search, Dee.Model results_model, 
95
 
                                         List<FilterParser> filters, int max_results = -1)
 
94
    public override async void perform_search (LensSearch search,
 
95
                                               SearchType search_type, 
 
96
                                               owned List<FilterParser> filters,
 
97
                                               int max_results = -1)
96
98
    {
97
 
      collection.search (search, results_model, filters, max_results);
 
99
      int category_override = -1;
 
100
      if (search_type == SearchType.GLOBAL)
 
101
      {
 
102
        category_override = Category.MUSIC;
 
103
        // the lens shouldn't display anything for empty search
 
104
        if (is_search_empty (search)) return;
 
105
      }
 
106
 
 
107
      collection.search (search, search_type, filters,
 
108
                         max_results, category_override);
98
109
    }
99
110
  }
100
111
}