ocarina/ocarina/footer/footer.cpp

37 lines
716 B
C++

#include <ocarina/footer.h>
#include <libsaria/track.h>
#include "footer.h"
static GtkWidget *footer = NULL;
static void make_footer()
{
GtkWidget *sep = gtk_hseparator_new();
footer = gtk_vbox_new(FALSE, 0);
gtk_widget_show(sep);
gtk_widget_show(footer);
/*
* The pause button begins life hidden, so show everything up until
* this point, and then add the controls
*/
gtk_widget_show_all(footer);
box_pack_start(footer, sep, FALSE, FALSE, 0);
box_pack_start(footer, get_controls(), FALSE, FALSE, 0);
}
GtkWidget *get_footer()
{
if (footer == NULL)
make_footer();
g_object_ref(footer);
return footer;
}
void put_footer()
{
if (footer != NULL)
g_object_unref(footer);
}