gui/gst: Remove gst :: toggle()

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-12-24 12:51:04 -05:00
parent bf39724a40
commit dee8b948b0
3 changed files with 4 additions and 10 deletions

View File

@ -111,14 +111,6 @@ static bool on_timeout()
return true;
}
void gst :: toggle()
{
if (audio_cur_state() == GST_STATE_PLAYING)
audio_pause();
else
audio_play();
}
void gst :: init_pre()
{
o_seek = GTK_SCALE(gui_builder_widget("o_seek"));

View File

@ -55,7 +55,10 @@ static bool on_window_key_released(GdkEventKey *event)
if (key != "space")
return false;
gst :: toggle();
if (audio_cur_state() == GST_STATE_PLAYING)
audio_pause();
else
audio_play();
return true;
}

View File

@ -27,7 +27,6 @@ void post_init_queue_tabs();
/* gst.cpp */
namespace gst
{
void toggle();
void init_pre();
void init();
}