gui: Begin playback when pressing the next() button

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
Anna Schumaker 2014-01-24 16:26:26 -05:00 committed by Anna Schumaker
parent 2b57be8c66
commit 00d5258902
1 changed files with 7 additions and 1 deletions

View File

@ -48,6 +48,12 @@ static void on_pause()
audio_playing = false;
}
static void on_next()
{
audio :: next();
audio :: play();
}
static void on_track_loaded(library :: Song &song)
{
Gtk::Label *title, *artist, *album, *duration;
@ -305,7 +311,7 @@ Gtk::Window *connect_wires()
connect_button("o_pause", audio::pause);
connect_button("o_stop", audio::stop);
connect_button("o_prev", audio::previous);
connect_button("o_next", audio::next);
connect_button("o_next", on_next);
/* Collection manager */