ocarina: Created a shortcut for switching to the banned list

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-05-17 13:31:02 -04:00
parent bd171423a6
commit ed33881a25
3 changed files with 8 additions and 0 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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")