~unity-team/unity-lens-music/0.3

« back to all changes in this revision

Viewing changes to src/musicstore-filter-parser-decade.vala

  • Committer: Alex Launi
  • Date: 2011-10-03 14:47:26 UTC
  • mfrom: (60.1.3 cap-decade-filter)
  • Revision ID: alex.launi@canonical.com-20111003144726-1a6bopwt1zj2cicc
merge music store decade filter cap branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
      
39
39
      int start_year = int.parse (start);
40
40
      int end_year = int.parse (end);
 
41
 
 
42
      start_year = start_year.clamp (1900, 2020);
 
43
      end_year = end_year.clamp (1900, 2020);
41
44
      
42
45
      for (; start_year <= end_year; start_year += 10)
43
46
      {
44
 
        builder.append_printf ("%d,", start_year);
 
47
        builder.append_printf ("%d,", start_year);
45
48
      }
46
49
      
47
50
      // chop off the last ,