audacious-plugins-3.3.3-sort-by-length.patch
audacious-plugins-3.3.3/src/gtkui/menus.c 2013-01-26 20:39:37.000000000 -0200 | ||
---|---|---|
86 | 86 |
static void pl_sort_date (void) {aud_playlist_sort_by_scheme (aud_playlist_get_active (), PLAYLIST_SORT_DATE); } |
87 | 87 |
static void pl_sort_path (void) {aud_playlist_sort_by_scheme (aud_playlist_get_active (), PLAYLIST_SORT_PATH); } |
88 | 88 |
static void pl_sort_custom (void) {aud_playlist_sort_by_scheme (aud_playlist_get_active (), PLAYLIST_SORT_FORMATTED_TITLE); } |
89 |
static void pl_sort_length (void) {aud_playlist_sort_by_scheme (aud_playlist_get_active (), PLAYLIST_SORT_LENGTH); } |
|
89 | 90 |
static void pl_reverse (void) {aud_playlist_reverse (aud_playlist_get_active ()); } |
90 | 91 |
static void pl_random (void) {aud_playlist_randomize (aud_playlist_get_active ()); } |
91 | 92 | |
... | ... | |
191 | 192 |
{N_("By Release _Date"), .func = pl_sort_date}, |
192 | 193 |
{N_("By _File Path"), .func = pl_sort_path}, |
193 | 194 |
{N_("By _Custom Title"), .func = pl_sort_custom}, |
195 |
{N_("By Len_gth"), .func = pl_sort_length}, |
|
194 | 196 |
{.sep = TRUE}, |
195 | 197 |
{N_("R_everse Order"), GTK_STOCK_SORT_DESCENDING, .func = pl_reverse}, |
196 | 198 |
{N_("_Random Order"), .func = pl_random}}; |
audacious-plugins-3.3.3/src/skins/ui_playlist.c 2013-01-26 20:34:24.000000000 -0200 | ||
---|---|---|
935 | 935 |
aud_playlist_sort_by_scheme (active_playlist, PLAYLIST_SORT_FILENAME); |
936 | 936 |
} |
937 | 937 | |
938 |
void action_playlist_sort_by_length (void) |
|
939 |
{ |
|
940 |
aud_playlist_sort_by_scheme (active_playlist, PLAYLIST_SORT_LENGTH); |
|
941 |
} |
|
942 | ||
938 | 943 |
void action_playlist_sort_selected_by_track_number (void) |
939 | 944 |
{ |
940 | 945 |
aud_playlist_sort_selected_by_scheme (active_playlist, PLAYLIST_SORT_TRACK); |
... | ... | |
970 | 975 |
aud_playlist_sort_selected_by_scheme (active_playlist, PLAYLIST_SORT_FILENAME); |
971 | 976 |
} |
972 | 977 | |
978 |
void action_playlist_sort_selected_by_length (void) |
|
979 |
{ |
|
980 |
aud_playlist_sort_selected_by_scheme (active_playlist, PLAYLIST_SORT_LENGTH); |
|
981 |
} |
|
982 | ||
973 | 983 |
void action_playlist_randomize_list (void) |
974 | 984 |
{ |
975 | 985 |
aud_playlist_randomize (active_playlist); |