#include <gtk/gtk.h>

int main( int   argc,
          char *argv[] )
{
    GtkWidget *window;
    GtkWidget *scale;
    GtkObject *adj1;

    gtk_init(&argc, &argv);

    /* Standard window-creating stuff */
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_signal_connect (GTK_OBJECT (window), "destroy",
                        GTK_SIGNAL_FUNC(gtk_main_quit),
                        NULL);
    gtk_window_set_title (GTK_WINDOW (window), "range controls");

    adj1 = gtk_adjustment_new (0.0, 0.0, 11.0, 0.1, 1.0, 1.0);
    scale = gtk_hscale_new (GTK_ADJUSTMENT (adj1));
    gtk_scale_set_digits(GTK_SCALE(scale), 0);
    gtk_widget_set_usize (GTK_WIDGET (scale), 200, 30);
    gtk_container_add (GTK_CONTAINER (window), scale);
    gtk_widget_show (GTK_WIDGET(scale));

    gtk_widget_show (GTK_WIDGET(window));

    gtk_main();

    return(0);
}
