ocarina: Added toggle_play() shortcut

Spacebar!

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-03-26 20:10:18 -04:00
parent 6ae25ccdcb
commit d23469dfa7
1 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <ocarina/ocarina.h>
#include <ocarina/window.h>
#include <libsaria/audio.h>
#include <libsaria/stack.h>
#include <libsaria/prefs.h>
@ -91,7 +92,9 @@ static gboolean key_pressed(GtkWidget *widget, GdkEvent *event, gpointer data)
stringstream s(key);
s >> k;
ocarina::playlist::switch_to_plist(k);
} else if (key == "Escape")
} else if (key == "space")
libsaria::audio::toggle_play();
else if (key == "Escape")
gtk_widget_grab_focus(win);
else
return TRUE;