ocarina/ocarina/footer/controls.cpp

28 lines
754 B
C++

#include <ocarina/gtk.h>
#include <ocarina/button.h>
#include "footer.h"
static GtkWidget *controls = NULL;
static void make_controls()
{
controls = gtk_hbox_new(FALSE, 0);
gtk_widget_show(controls);
box_pack_end(controls, make_volume_button(), FALSE, FALSE, 0);
box_pack_end(controls, make_stop_button(), FALSE, FALSE, 0);
box_pack_end(controls, make_pause_button(), FALSE, FALSE, 0);
box_pack_end(controls, make_play_button(), FALSE, FALSE, 0);
box_pack_end(controls, make_forward_button(), FALSE, FALSE, 0);
box_pack_end(controls, make_rewind_button(), FALSE, FALSE, 0);
box_pack_end(controls, make_open_button(), FALSE, FALSE, 0);
}
GtkWidget *get_controls()
{
if (controls == NULL)
make_controls();
return controls;
}