Merge lp:~kamstrup/unity-lens-music/sorted-filters into lp:unity-lens-music

Proposed by Mikkel Kamstrup Erlandsen
Status: Merged
Merged at revision: 42
Proposed branch: lp:~kamstrup/unity-lens-music/sorted-filters
Merge into: lp:unity-lens-music
Diff against target: 11 lines (+1/-0)
1 file modified
src/daemon.vala (+1/-0)
To merge this branch: bzr merge lp:~kamstrup/unity-lens-music/sorted-filters
Reviewer Review Type Date Requested Status
Mikkel Kamstrup Erlandsen (community) Approve
Review via email: mp+75030@code.launchpad.net

Description of the change

Uses the new Unity.OptionsFilter.SortType API to sort the Genre filter by translated label

To post a comment you must log in.
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

John confirmed the intended behavior on IRC.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/daemon.vala'
2--- src/daemon.vala 2011-09-08 13:16:22 +0000
3+++ src/daemon.vala 2011-09-12 16:02:35 +0000
4@@ -72,6 +72,7 @@
5 /* Genre filter */
6 {
7 var filter = new CheckOptionFilter ("genre", _("Genre"));
8+ filter.sort_type = OptionsFilter.SortType.DISPLAY_NAME;
9
10 filter.add_option (Genre.BLUES_ID, _("Blues"));
11 filter.add_option (Genre.CLASSIC_ID, _("Classic"));

Subscribers

People subscribed via source and target branches