2011-09-10 09:42:34 -04:00
|
|
|
|
|
|
|
#include <ocarina/settings.h>
|
2011-09-10 10:30:25 -04:00
|
|
|
#include <ocarina/button.h>
|
2011-09-10 09:42:34 -04:00
|
|
|
#include <ocarina/gtk.h>
|
|
|
|
|
|
|
|
/* This is a gtk vbox */
|
|
|
|
static GtkWidget *library_settings = NULL;
|
|
|
|
|
2011-09-10 10:30:25 -04:00
|
|
|
static void on_click_add(GtkWidget *b, GdkEvent *e, gpointer d)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static GtkWidget *make_add_button()
|
|
|
|
{
|
|
|
|
return make_text_button(GTK_STOCK_ADD,
|
|
|
|
"Add to Library",
|
|
|
|
on_click_add,
|
|
|
|
true);
|
|
|
|
}
|
|
|
|
|
2011-09-10 09:42:34 -04:00
|
|
|
void library_settings_init()
|
|
|
|
{
|
2011-09-10 10:30:25 -04:00
|
|
|
GtkWidget *add_button = gtk_hbox_new(FALSE, 0);
|
|
|
|
library_settings = gtk_vbox_new(FALSE, 0);
|
|
|
|
|
|
|
|
box_pack_start(library_settings, add_button, FALSE, FALSE, 0);
|
|
|
|
box_pack_end(add_button, make_add_button(), FALSE, FALSE, 0);
|
2011-09-10 09:42:34 -04:00
|
|
|
|
|
|
|
gtk_widget_show(library_settings);
|
2011-09-10 10:30:25 -04:00
|
|
|
gtk_widget_show(add_button);
|
2011-09-10 09:42:34 -04:00
|
|
|
add_settings_page("Library", library_settings);
|
|
|
|
}
|