ocarina: Created a shortcut for switching to the banned list
Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
bd171423a6
commit
ed33881a25
|
@ -56,6 +56,7 @@ namespace ocarina
|
|||
|
||||
void switch_to_library();
|
||||
void switch_to_recent();
|
||||
void switch_to_banned();
|
||||
void switch_to_plist(unsigned int);
|
||||
void init();
|
||||
|
||||
|
|
|
@ -29,6 +29,11 @@ namespace ocarina
|
|||
recent_renderer.switch_to();
|
||||
}
|
||||
|
||||
void playlist::switch_to_banned()
|
||||
{
|
||||
banned_renderer.switch_to();
|
||||
}
|
||||
|
||||
void playlist::switch_to_plist(unsigned int n)
|
||||
{
|
||||
libsaria::Playlist *plist = libsaria::deck::get_playlist(n);
|
||||
|
|
|
@ -83,6 +83,8 @@ static gboolean key_pressed(GtkWidget *widget, GdkEvent *event, gpointer data)
|
|||
ocarina::playlist::switch_to_library();
|
||||
else if (key == "r" || key == "R")
|
||||
ocarina::playlist::switch_to_recent();
|
||||
else if (key == "b" || key == "B")
|
||||
ocarina::playlist::switch_to_banned();
|
||||
else if (key == "n")
|
||||
libsaria::deck::next();
|
||||
else if (key == "N")
|
||||
|
|
Loading…
Reference in New Issue