#include <glib.h>
#include <gtk/gtk.h>

static void create_notebook (GtkBox *box)
{
  GtkWidget *notebook, *label;
  
  notebook = gtk_notebook_new ();
  gtk_box_pack_start (box, notebook, TRUE, TRUE, 0);

  label = gtk_label_new ("Label 1");
  gtk_widget_set_tooltip_text (label, "Tooltip 1");
  gtk_notebook_append_page (GTK_NOTEBOOK (notebook), gtk_label_new ("Tab 1"), label);
}

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

  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), NULL);
  gtk_window_set_default_size (GTK_WINDOW (window), 500, 200);

  vbox = gtk_vbox_new (6, TRUE);
  gtk_container_add (GTK_CONTAINER (window), vbox);
  create_notebook (GTK_BOX (vbox));
  create_notebook (GTK_BOX (vbox));

  gtk_widget_show_all (window);
  gtk_main ();

  return 0;
}
