/* gcc inspector-rtl.c $(pkg-config --cflags --libs gtk+-3.0
   glib-2.0) */

#include <gtk/gtk.h>

int
main (void)
{
  GtkWidget *button;
  GtkWidget *bar;
  GtkWidget *image;
  GtkWidget *overlay;
  GtkWidget *window;

  gtk_init (NULL, NULL);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);
  g_signal_connect (window, "delete-event", gtk_main_quit, NULL);

  bar = gtk_header_bar_new ();
  gtk_window_set_titlebar (GTK_WINDOW (window), bar);

  button = gtk_button_new_from_icon_name ("go-previous-symbolic", GTK_ICON_SIZE_BUTTON);
  gtk_widget_set_halign (button, GTK_ALIGN_START);
  gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
  gtk_button_set_always_show_image (GTK_BUTTON (button), TRUE);
  gtk_button_set_label (GTK_BUTTON (button), "P");
  gtk_header_bar_pack_start (GTK_HEADER_BAR (bar), button);

  button = gtk_button_new_from_icon_name ("go-next-symbolic", GTK_ICON_SIZE_BUTTON);
  gtk_widget_set_halign (button, GTK_ALIGN_END);
  gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
  gtk_button_set_always_show_image (GTK_BUTTON (button), TRUE);
  gtk_button_set_label (GTK_BUTTON (button), "N");
  gtk_header_bar_pack_end (GTK_HEADER_BAR (bar), button);

  overlay = gtk_overlay_new ();
  gtk_widget_set_hexpand (overlay, TRUE);
  gtk_widget_set_vexpand (overlay, TRUE);
  gtk_container_add (GTK_CONTAINER (window), overlay);

  image = gtk_image_new_from_icon_name ("face-cool-symbolic", GTK_ICON_SIZE_DIALOG);
  gtk_container_add (GTK_CONTAINER (overlay), image);

  button = gtk_button_new_from_icon_name ("go-previous-symbolic", GTK_ICON_SIZE_BUTTON);
  gtk_widget_set_halign (button, GTK_ALIGN_START);
  gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
  gtk_button_set_always_show_image (GTK_BUTTON (button), TRUE);
  gtk_button_set_label (GTK_BUTTON (button), "P");
  gtk_overlay_add_overlay (GTK_OVERLAY (overlay), button);

  button = gtk_button_new_from_icon_name ("go-next-symbolic", GTK_ICON_SIZE_BUTTON);
  gtk_widget_set_halign (button, GTK_ALIGN_END);
  gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
  gtk_button_set_always_show_image (GTK_BUTTON (button), TRUE);
  gtk_button_set_label (GTK_BUTTON (button), "N");
  gtk_overlay_add_overlay (GTK_OVERLAY (overlay), button);

  gtk_widget_show_all (window);
  gtk_main ();

  return 0;
}
