diff options
author | Havoc Pennington <hp@redhat.com> | 2001-03-08 01:55:28 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-03-08 01:55:28 +0000 |
commit | d85dd6bd9882f5da894f5cf0ce77a66493c42223 (patch) | |
tree | cb1c400368e355e69423df1b971ca822d68e9da9 /tests | |
parent | 29268cc780d2a63a44c2ebd12ebbd4b65cd2391f (diff) | |
download | gdk-pixbuf-d85dd6bd9882f5da894f5cf0ce77a66493c42223.tar.gz |
uglify so that size request gets tested.
2001-03-07 Havoc Pennington <hp@redhat.com>
* gtk/testgtk.c (create_spins): uglify so that size request gets
tested.
* gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
request on values for upper/lower, completes #6152
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testgtk.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index 88e62a748..f8fa8ce72 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -3837,7 +3837,7 @@ create_spins (void) gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 5); vbox2 = gtk_vbox_new (FALSE, 0); - gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, TRUE, 5); + gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, FALSE, 5); label = gtk_label_new ("Value :"); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); @@ -3847,11 +3847,10 @@ create_spins (void) 0.5, 100.0, 0.0); spinner1 = gtk_spin_button_new (adj, 1.0, 2); gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spinner1), TRUE); - gtk_widget_set_usize (spinner1, 100, 0); gtk_box_pack_start (GTK_BOX (vbox2), spinner1, FALSE, TRUE, 0); vbox2 = gtk_vbox_new (FALSE, 0); - gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, TRUE, 5); + gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, FALSE, 5); label = gtk_label_new ("Digits :"); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); @@ -3865,7 +3864,7 @@ create_spins (void) gtk_box_pack_start (GTK_BOX (vbox2), spinner2, FALSE, TRUE, 0); hbox = gtk_hbox_new (FALSE, 0); - gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 5); + gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 5); button = gtk_check_button_new_with_label ("Snap to 0.5-ticks"); gtk_signal_connect (GTK_OBJECT (button), "clicked", |