#include <gtk/gtk.h>

int
main (int argc, char **argv)
{
	GtkWidget *area, *vscale, *hbox, *window;

	gtk_init (&argc, &argv);

	area = gtk_drawing_area_new ();
	gtk_widget_set_size_request (area, 400, 400);
	
	vscale = gtk_vscale_new_with_range (-10, 10, 0.01);

	hbox = gtk_hbox_new (FALSE, 0);
	gtk_box_pack_start (GTK_BOX (hbox), area, FALSE, FALSE, 0);
	gtk_box_pack_start (GTK_BOX (hbox), vscale, FALSE, FALSE, 0);
	
	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
	gtk_container_add (GTK_CONTAINER (window), hbox);
	g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);

	gtk_widget_show_all (window);
	
	gtk_main ();

	return 0;
}
