gui: Move stop button
It's in the controls.cpp file with the play and pause button code.
This commit is contained in:
parent
f6ac48219e
commit
f49b5e1d6d
|
@ -19,16 +19,6 @@ GtkWidget *make_button(const gchar *stockid, GtkIconSize size,
|
|||
return button;
|
||||
}
|
||||
|
||||
static void on_click_stop(GtkWidget *b, GdkEvent *e, gpointer d)
|
||||
{
|
||||
libsaria_get()->stop();
|
||||
}
|
||||
|
||||
GtkWidget *make_stop_button(GtkIconSize size)
|
||||
{
|
||||
return make_button(GTK_STOCK_MEDIA_STOP, size, on_click_stop, true);
|
||||
}
|
||||
|
||||
static void on_click_open_file(GtkWidget *b, GdkEvent *e, gpointer d)
|
||||
{
|
||||
string file = ocarina_choose_file();
|
||||
|
|
|
@ -64,4 +64,17 @@ GtkWidget *make_pause_button(GtkIconSize size)
|
|||
return b;
|
||||
}
|
||||
|
||||
static void on_click_stop(GtkWidget *b, GdkEvent *e, gpointer d)
|
||||
{
|
||||
libsaria_get()->stop();
|
||||
}
|
||||
|
||||
GtkWidget *make_stop_button(GtkIconSize size)
|
||||
{
|
||||
return make_button(GTK_STOCK_MEDIA_STOP,
|
||||
size,
|
||||
on_click_stop,
|
||||
true);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue