#include <gtk/gtk.h>

int main(int argc, char **argv)
{
    GtkWidget *window, *vbox, *toolbar;
    GtkStyleContext *context;

    gtk_init(&argc, &argv);

    vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtk_window_set_default_size(GTK_WINDOW(window), 300, 200);

    toolbar = gtk_toolbar_new();
    context = gtk_widget_get_style_context(toolbar);
    gtk_style_context_add_class(context, GTK_STYLE_CLASS_PRIMARY_TOOLBAR);

    gtk_container_add(GTK_CONTAINER(vbox), toolbar);
    gtk_container_add(GTK_CONTAINER(window), vbox);

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

    gtk_widget_show_all(window);

    gtk_main();

    return 0;
}
