~chipaca/unity-lens-music/dont-force-us

« back to all changes in this revision

Viewing changes to src/banshee-scope.vala

  • Committer: Neil Jagdish Patel
  • Author(s): Alex Launi
  • Date: 2011-09-15 18:08:53 UTC
  • mfrom: (41.1.5 musicstore)
  • Revision ID: neil.patel@canonical.com-20110915180853-hc7natia0x01nwap
Merge in initial support for searching one.ubuntu.com for music to purchase

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    {
30
30
      base ();
31
31
 
32
 
      Scope = new Unity.Scope ("/com/canonical/unity/scope/banshee");
33
 
      Scope.search_in_global = true;
34
 
      Scope.activate_uri.connect (activate);
 
32
      scope = new Unity.Scope ("/com/canonical/unity/scope/banshee");
 
33
      scope.search_in_global = true;
 
34
      scope.activate_uri.connect (activate);
35
35
 
36
 
      base.Initialize ();
 
36
      base.initialize ();
37
37
 
38
38
      try {
39
39
        collection = new BansheeCollection ();
63
63
            string title = split[3];
64
64
            
65
65
            Album album = new Album ();
66
 
            album.Artist = artist;
67
 
            album.Title = title;
 
66
            album.artist = artist;
 
67
            album.title = title;
68
68
            // FIXME there must be a better way..
69
69
            foreach (string track in collection.get_track_uris (album))
70
70
              exec += track;
91
91
    }
92
92
 
93
93
    public override void perform_search (LensSearch? search, Dee.Model results_model, 
94
 
                                         List<Filter> filters, int max_results = -1)
 
94
                                         List<FilterParser> filters, int max_results = -1)
95
95
    {
96
 
      List<FilterParser> parsers = new List<FilterParser> ();
97
 
      foreach (Filter f in filters) {
98
 
        parsers.append (new FilterParser (f));
99
 
      }
100
 
 
101
 
      collection.search (search, results_model, parsers, max_results);
 
96
      collection.search (search, results_model, filters, max_results);
102
97
    }
103
98
  }
104
99
}