gui: Move stop button

It's in the controls.cpp file with the play and pause button code.
This commit is contained in:
Bryan Schumaker 2011-08-31 08:29:02 -04:00
parent f6ac48219e
commit f49b5e1d6d
2 changed files with 13 additions and 10 deletions

View File

@ -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();

View 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);
}