#include <gtk/gtk.h>

void
main (int argc, char **argv)
{
  gtk_init (&argc, &argv);
  GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  GtkWidget *progress = gtk_progress_bar_new ();
  GtkWidget *overlay = gtk_overlay_new ();
  GtkWidget *button = gtk_button_new_with_label ("Button");

  gtk_style_context_add_class (gtk_widget_get_style_context (progress),
                               "osd");

  gtk_widget_set_halign (progress, GTK_ALIGN_CENTER);
  gtk_widget_set_valign (progress, GTK_ALIGN_CENTER);

  gtk_overlay_add_overlay (GTK_OVERLAY (overlay), progress);


  gtk_container_add (GTK_CONTAINER (overlay), button);
  gtk_container_add (GTK_CONTAINER (window), overlay);

  gtk_widget_show_all (window);
  gtk_main ();
}
