I am no longer going to use the tiny / full footer scheme that I used in Ocarina 4.x, so this file is better described as footer.cpp
39 lines
711 B
C++
39 lines
711 B
C++
|
|
#include <ocarina/footer.h>
|
|
#include <ocarina/button.h>
|
|
|
|
static GtkWidget *footer = NULL;
|
|
|
|
static void footer_pack(GtkWidget *widget)
|
|
{
|
|
box_pack_end(footer, widget, FALSE, FALSE, 0);
|
|
}
|
|
|
|
static void make_tiny_footer()
|
|
{
|
|
footer = gtk_hbox_new(FALSE, 0);
|
|
gtk_widget_show(footer);
|
|
|
|
footer_pack(make_volume_button());
|
|
footer_pack(make_stop_button());
|
|
footer_pack(make_pause_button());
|
|
footer_pack(make_play_button());
|
|
footer_pack(make_forward_button());
|
|
footer_pack(make_rewind_button());
|
|
footer_pack(make_open_button());
|
|
}
|
|
|
|
GtkWidget *get_footer()
|
|
{
|
|
if (footer == NULL)
|
|
make_tiny_footer();
|
|
g_object_ref(footer);
|
|
return footer;
|
|
}
|
|
|
|
void put_footer()
|
|
{
|
|
if (footer != NULL)
|
|
g_object_unref(footer);
|
|
}
|