#include <gtk/gtk.h>

static gboolean
my_draw (GtkWidget *widget, cairo_t *cr, gpointer data)
{
    // This is were I would draw my widget
    return TRUE;
}

int main (int argc, char *argv[])
{
    GtkWidget *window;
    GtkWidget *area;
    GdkRGBA rgba;

    gtk_init (&argc, &argv);

    area = gtk_drawing_area_new();
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

    gtk_container_add (GTK_CONTAINER (window), area);
    g_signal_connect (G_OBJECT (area), "draw", G_CALLBACK (my_draw), NULL);

    g_assert(gdk_rgba_parse(&rgba, "blue"));
    gtk_widget_override_background_color(area, GTK_STATE_FLAG_NORMAL, &rgba);
    gtk_widget_show_all (window);

    g_signal_connect (window, "delete_event", G_CALLBACK (gtk_main_quit), NULL);

    gtk_main ();
    return 0;
}
