#include <gtk/gtk.h>

int
main (int argc, char *argv[])
{
    GtkWidget *window;
    GtkWidget *vbox;
    GtkWidget *button;

    gtk_init (&argc, &argv);
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
    vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
    gtk_container_add (GTK_CONTAINER (window), vbox);
    button = gtk_button_new_with_label ("A");
    gtk_widget_set_halign (button, GTK_ALIGN_START);
    gtk_widget_set_margin_start (button, 0);
    gtk_widget_set_tooltip_text (button, "foo test");
    gtk_widget_set_has_tooltip (button, TRUE);

    gtk_container_add (GTK_CONTAINER (vbox), button);

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

    gtk_widget_show_all (window);

    gtk_main ();
    return 0;
}
