2 * Copyright (C) 2004 Morten Welinder
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
24 main (int argc, char **argv)
26 GtkWidget *window, *mainbox;
29 gtk_init (&argc, &argv);
31 window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
32 g_signal_connect (window, "delete_event", gtk_main_quit, NULL);
34 mainbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
35 gtk_container_add (GTK_CONTAINER (window), mainbox);
37 for (max = 9; max <= 999999999; max = max * 10 + 9) {
38 GtkAdjustment *adj = gtk_adjustment_new (max,
44 GtkWidget *spin = gtk_spin_button_new (adj, 1.0, 0);
45 GtkWidget *hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
47 gtk_box_pack_start (GTK_BOX (hbox),
53 gtk_container_add (GTK_CONTAINER (mainbox), hbox);
57 gtk_widget_show_all (window);