gui/gst: Remove gst :: toggle()
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
bf39724a40
commit
dee8b948b0
|
@ -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"));
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ void post_init_queue_tabs();
|
|||
/* gst.cpp */
|
||||
namespace gst
|
||||
{
|
||||
void toggle();
|
||||
void init_pre();
|
||||
void init();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue