2011-09-07 08:12:02 -04:00
|
|
|
|
|
|
|
#include <ocarina/footer.h>
|
|
|
|
#include <ocarina/button.h>
|
|
|
|
|
|
|
|
static GtkWidget *footer = NULL;
|
|
|
|
|
|
|
|
static void footer_pack(GtkWidget *widget)
|
|
|
|
{
|
2011-10-21 17:55:27 -04:00
|
|
|
box_pack_end(footer, widget, FALSE, FALSE, 0);
|
2011-09-07 08:12:02 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
static void make_tiny_footer()
|
|
|
|
{
|
|
|
|
footer = gtk_hbox_new(FALSE, 0);
|
|
|
|
gtk_widget_show(footer);
|
|
|
|
|
|
|
|
footer_pack(make_volume_button());
|
2011-10-21 17:55:27 -04:00
|
|
|
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());
|
2011-09-07 08:12:02 -04:00
|
|
|
}
|
|
|
|
|
2011-10-27 12:08:21 -04:00
|
|
|
GtkWidget *get_footer()
|
2011-09-07 08:12:02 -04:00
|
|
|
{
|
|
|
|
if (footer == NULL)
|
|
|
|
make_tiny_footer();
|
2011-10-27 12:08:21 -04:00
|
|
|
g_object_ref(footer);
|
2011-09-07 08:12:02 -04:00
|
|
|
return footer;
|
|
|
|
}
|
2011-10-21 14:51:22 -04:00
|
|
|
|
2011-10-27 12:08:21 -04:00
|
|
|
void put_footer()
|
2011-10-21 14:51:22 -04:00
|
|
|
{
|
|
|
|
if (footer != NULL)
|
|
|
|
g_object_unref(footer);
|
|
|
|
}
|