/* Build with:
 * gcc -I /path/to/libgd/libgd -Wall $(pkg-config --cflags --libs gtk+-3.0)
 * ./testcase.c /path/to/libgd/libgd/gd-header-button.c
 */
#include <gtk/gtk.h>
#include "gd-header-button.h"

int main(int argc, char **argv)
{
    GtkWidget *window;
    GtkWidget *gtkbutton;
    GtkWidget *gdbutton;

    gtk_init(&argc, &argv);

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtkbutton = gtk_button_new_with_label("G_tk Test");
    gtk_button_set_use_underline(GTK_BUTTON(gtkbutton), TRUE);
    gtk_container_add(GTK_CONTAINER(window), gtkbutton);
    gtk_widget_show_all(window);

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gdbutton = gd_header_simple_button_new();
    gd_header_button_set_label(GD_HEADER_BUTTON(gdbutton), "G_d Test");
    gtk_button_set_use_underline(GTK_BUTTON(gdbutton), TRUE);
    gtk_container_add(GTK_CONTAINER(window), gdbutton);
    gtk_widget_show_all(window);

    gtk_main();

    return 0;
}
