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

« back to all changes in this revision

Viewing changes to src/daemon.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:
71
71
 
72
72
      /* Genre filter */
73
73
      {
74
 
        var filter = new CheckOptionFilter ("genre", _("Genre"));
 
74
        var filter = new CheckOptionFilterCompact ("genre", _("Genre"));
75
75
        filter.sort_type = OptionsFilter.SortType.DISPLAY_NAME;
76
76
 
77
77
        filter.add_option (Genre.BLUES_ID, _("Blues"));
102
102
    // FIXME icons
103
103
    private void populate_categories ()
104
104
    {
 
105
      /* Offsets of categories must match up with the Category enum */
 
106
      
105
107
      var categories = new GLib.List<Unity.Category> ();
106
108
      var icon_dir = File.new_for_path (ICON_PATH);
107
109
 
116
118
      cat = new Unity.Category (_("Available for Purchase"),
117
119
                                new FileIcon (icon_dir.get_child ("group-purchase.svg")));
118
120
      categories.append (cat);
 
121
      
 
122
      cat = new Unity.Category (_("Music"),
 
123
                                new FileIcon (icon_dir.get_child ("group-songs.svg")));
 
124
      categories.append (cat);
119
125
 
120
126
      lens.categories = categories;
121
127
    }