Add new testspinbutton.c
2004-03-12 Morten Welinder <terra@gnome.org> * tests/Makefile.am: Add new testspinbutton.c
This commit is contained in:

committed by
Morten Welinder

parent
989bfc4af8
commit
ed649f3bff
@ -1,3 +1,7 @@
|
|||||||
|
2004-03-12 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
|
* tests/Makefile.am: Add new testspinbutton.c
|
||||||
|
|
||||||
2004-03-11 Federico Mena Quintero <federico@ximian.com>
|
2004-03-11 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
|
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2004-03-12 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
|
* tests/Makefile.am: Add new testspinbutton.c
|
||||||
|
|
||||||
2004-03-11 Federico Mena Quintero <federico@ximian.com>
|
2004-03-11 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
|
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2004-03-12 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
|
* tests/Makefile.am: Add new testspinbutton.c
|
||||||
|
|
||||||
2004-03-11 Federico Mena Quintero <federico@ximian.com>
|
2004-03-11 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
|
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2004-03-12 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
|
* tests/Makefile.am: Add new testspinbutton.c
|
||||||
|
|
||||||
2004-03-11 Federico Mena Quintero <federico@ximian.com>
|
2004-03-11 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
|
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2004-03-12 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
|
* tests/Makefile.am: Add new testspinbutton.c
|
||||||
|
|
||||||
2004-03-11 Federico Mena Quintero <federico@ximian.com>
|
2004-03-11 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
|
* gtk/gtkfilechooserdefault.c (shortcuts_drag_set_delete_cursor):
|
||||||
|
@ -20,22 +20,23 @@ testfilechooser
|
|||||||
testgtk
|
testgtk
|
||||||
testicontheme
|
testicontheme
|
||||||
testinput
|
testinput
|
||||||
testmerge
|
|
||||||
testmenus
|
testmenus
|
||||||
|
testmerge
|
||||||
testmultidisplay
|
testmultidisplay
|
||||||
testmultiscreen
|
testmultiscreen
|
||||||
testrgb
|
testrgb
|
||||||
testselection
|
testselection
|
||||||
testtext
|
|
||||||
testtoolbar
|
|
||||||
testtreeedit
|
|
||||||
testtreeview
|
|
||||||
testtreecolumns
|
|
||||||
testsocket
|
testsocket
|
||||||
testsocket_child
|
testsocket_child
|
||||||
|
testspinbutton
|
||||||
|
testtext
|
||||||
testtextbuffer
|
testtextbuffer
|
||||||
|
testtoolbar
|
||||||
|
testtreecolumns
|
||||||
|
testtreeedit
|
||||||
|
testtreeflow
|
||||||
testtreefocus
|
testtreefocus
|
||||||
testtreesort
|
testtreesort
|
||||||
treestoretest
|
testtreeview
|
||||||
testtreeflow
|
|
||||||
testxinerama
|
testxinerama
|
||||||
|
treestoretest
|
||||||
|
@ -43,6 +43,7 @@ noinst_PROGRAMS = \
|
|||||||
testrgb \
|
testrgb \
|
||||||
testselection \
|
testselection \
|
||||||
$(testsocket_programs) \
|
$(testsocket_programs) \
|
||||||
|
testspinbutton \
|
||||||
testtext \
|
testtext \
|
||||||
testtextbuffer \
|
testtextbuffer \
|
||||||
testtoolbar \
|
testtoolbar \
|
||||||
@ -79,6 +80,7 @@ testrgb_DEPENDENCIES = $(TEST_DEPS)
|
|||||||
testselection_DEPENDENCIES = $(TEST_DEPS)
|
testselection_DEPENDENCIES = $(TEST_DEPS)
|
||||||
testsocket_DEPENDENCIES = $(DEPS)
|
testsocket_DEPENDENCIES = $(DEPS)
|
||||||
testsocket_child_DEPENDENCIES = $(DEPS)
|
testsocket_child_DEPENDENCIES = $(DEPS)
|
||||||
|
testspinbutton_DEPENDENCIES = $(TEST_DEPS)
|
||||||
testtext_DEPENDENCIES = $(TEST_DEPS)
|
testtext_DEPENDENCIES = $(TEST_DEPS)
|
||||||
testtextbuffer_DEPENDENCIES = $(TEST_DEPS)
|
testtextbuffer_DEPENDENCIES = $(TEST_DEPS)
|
||||||
testtreeedit_DEPENDENCIES = $(DEPS)
|
testtreeedit_DEPENDENCIES = $(DEPS)
|
||||||
@ -109,6 +111,7 @@ testrgb_LDADD = $(LDADDS)
|
|||||||
testselection_LDADD = $(LDADDS)
|
testselection_LDADD = $(LDADDS)
|
||||||
testsocket_LDADD = $(LDADDS)
|
testsocket_LDADD = $(LDADDS)
|
||||||
testsocket_child_LDADD = $(LDADDS)
|
testsocket_child_LDADD = $(LDADDS)
|
||||||
|
testspinbutton_LDADD = $(LDADDS)
|
||||||
testtextbuffer_LDADD = $(LDADDS)
|
testtextbuffer_LDADD = $(LDADDS)
|
||||||
testtoolbar_LDADD = $(LDADDS)
|
testtoolbar_LDADD = $(LDADDS)
|
||||||
stresstest_toolbar_LDADD = $(LDADDS)
|
stresstest_toolbar_LDADD = $(LDADDS)
|
||||||
@ -159,6 +162,9 @@ testsocket_child_SOURCES = \
|
|||||||
testsocket_child.c \
|
testsocket_child.c \
|
||||||
testsocket_common.c
|
testsocket_common.c
|
||||||
|
|
||||||
|
testspinbutton_SOURCES = \
|
||||||
|
testspinbutton.c
|
||||||
|
|
||||||
testmerge_SOURCES = \
|
testmerge_SOURCES = \
|
||||||
testmerge.c
|
testmerge.c
|
||||||
|
|
||||||
|
44
tests/testspinbutton.c
Normal file
44
tests/testspinbutton.c
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
#include <config.h>
|
||||||
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
int
|
||||||
|
main (int argc, char **argv)
|
||||||
|
{
|
||||||
|
GtkWidget *window, *mainbox;
|
||||||
|
int max;
|
||||||
|
|
||||||
|
gtk_init (&argc, &argv);
|
||||||
|
|
||||||
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
|
g_signal_connect (window, "delete_event", gtk_main_quit, NULL);
|
||||||
|
|
||||||
|
mainbox = gtk_vbox_new (FALSE, 2);
|
||||||
|
gtk_container_add (GTK_CONTAINER (window), mainbox);
|
||||||
|
|
||||||
|
for (max = 9; max <= 999999999; max = max * 10 + 9) {
|
||||||
|
GtkAdjustment *adj =
|
||||||
|
GTK_ADJUSTMENT (gtk_adjustment_new (max,
|
||||||
|
1, max,
|
||||||
|
1,
|
||||||
|
(max + 1) / 10,
|
||||||
|
0.0));
|
||||||
|
|
||||||
|
GtkWidget *spin = gtk_spin_button_new (adj, 1.0, 0);
|
||||||
|
GtkWidget *hbox = gtk_hbox_new (FALSE, 2);
|
||||||
|
|
||||||
|
gtk_box_pack_start (GTK_BOX (hbox),
|
||||||
|
spin,
|
||||||
|
FALSE,
|
||||||
|
FALSE,
|
||||||
|
2);
|
||||||
|
|
||||||
|
gtk_container_add (GTK_CONTAINER (mainbox), hbox);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
gtk_widget_show_all (window);
|
||||||
|
|
||||||
|
gtk_main ();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Reference in New Issue
Block a user