#include <gtk/gtk.h>

static void
exitCB(GtkWidget *w, gpointer data)
{
  gtk_main_quit ();
}


int
main(int argc, char *argv[])
{
  gtk_set_locale ();
  gtk_init (&argc, &argv);

  GtkWidget *top = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  GtkWidget *wpaned = gtk_vpaned_new ();
  GtkWidget *wfixed1 = gtk_fixed_new ();
  GtkWidget *wfixed2 = gtk_fixed_new ();
  GtkWidget *wsc1 = gtk_scrolled_window_new (NULL, NULL);
  GtkWidget *wsc2 = gtk_scrolled_window_new (NULL, NULL);
  GtkWidget *wfr1 = gtk_frame_new (NULL);
  GtkWidget *wfr2 = gtk_frame_new (NULL);
  
  gtk_widget_set_size_request (top, 400, 400);

  gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (wsc1),
                                         wfixed1);
  gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (wsc2),
                                         wfixed2);
  
  gtk_frame_set_shadow_type (GTK_FRAME (wfr1), GTK_SHADOW_IN);
  gtk_frame_set_shadow_type (GTK_FRAME (wfr2), GTK_SHADOW_IN);

  gtk_paned_pack1 (GTK_PANED (wpaned), wfr1, TRUE, TRUE);
  gtk_paned_pack2 (GTK_PANED (wpaned), wfr2, TRUE, TRUE);

  gtk_container_add (GTK_CONTAINER (wfr1), wsc1);
  gtk_container_add (GTK_CONTAINER (wfr2), wsc2);
  
  gtk_container_add (GTK_CONTAINER (top), wpaned);
  g_signal_connect (G_OBJECT (top), "destroy", G_CALLBACK (exitCB), 0);

  gtk_widget_show_all (top);
  gtk_main ();
  return 0;
}
