gui: Begin playback when pressing the next() button
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
parent
2b57be8c66
commit
00d5258902
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue