~didrocks/unity-lens-music/get-right-icon-5.0

« back to all changes in this revision

Viewing changes to src/musicstore-collection.vala

  • Committer: Alex Launi
  • Date: 2011-09-26 15:37:14 UTC
  • Revision ID: alex.launi@canonical.com-20110926153714-oz6q51mf130l35oe
usr u1ms:// for dnd in musicstore scope

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    {
38
38
      // helps cut down on number of requests we send out to u1
39
39
      if (cancellable != null)
40
 
        cancellable.cancel ();
 
40
        cancellable.cancel ();    
41
41
 
42
42
      cancellable = new Cancellable ();
43
43
      string? uri = build_search_uri (search.search_string, filters);
73
73
            track.mime_type = "audio-x-generic";
74
74
 
75
75
            // FIXME drag n drop uri needs to be the u1ms:// link
76
 
            model.append (track.uri, track.artwork_path, 2, track.mime_type, track.title, track.artist, null);
 
76
            model.append (track.uri, track.artwork_path, 2, track.mime_type, track.title, track.artist, track.uri);
77
77
          
78
78
          } else if (type == "album") {
79
79
            Album album = new Album ();
82
82
            album.uri = result_obj.get_string_member ("purchase_url");
83
83
            album.artwork_path = result_obj.get_string_member ("image");
84
84
            
85
 
            model.append (album.uri, album.artwork_path, 2, "audio-x-generic", album.title, album.artist, null);
 
85
            model.append (album.uri, album.artwork_path, 2, "audio-x-generic", album.title, album.artist, album.uri);
86
86
          }
87
87
        }
88
88