diff options
author | Havoc Pennington <hp@redhat.com> | 2001-06-04 22:32:10 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-06-04 22:32:10 +0000 |
commit | 5c7c11cec85fd1a35644b3bd1d591c7ac886ecbb (patch) | |
tree | 9c2664597f830d1fe800b19f56766c4fb842342b /tests | |
parent | 2d1f353aa4253679b6125453e645991e59a0d5ce (diff) | |
download | gtk+-5c7c11cec85fd1a35644b3bd1d591c7ac886ecbb.tar.gz |
Get rid of stupid g_return_if_fail on digits greater than 6. If there
2001-06-04 Havoc Pennington <hp@redhat.com>
* gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on
digits greater than 6. If there actually are limits (which there
likely aren't), should clamp to them not warn.
(gtk_spin_button_new_with_range): don't take log of 0
(gtk_spin_button_size_request): use digits to compute size
request, rather than step increment.
* tests/testgtk.c (create_spins): test larger values of digits
* gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
font on map not expose, so we don't get weirdness during scrolling
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testgtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index c0f645a9da..193087613b 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -4093,7 +4093,7 @@ create_spins (void) gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_box_pack_start (GTK_BOX (vbox2), label, FALSE, TRUE, 0); - adj = (GtkAdjustment *) gtk_adjustment_new (2, 1, 5, 1, 1, 0); + adj = (GtkAdjustment *) gtk_adjustment_new (2, 1, 15, 1, 1, 0); spinner2 = gtk_spin_button_new (adj, 0.0, 0); gtk_signal_connect (GTK_OBJECT (adj), "value_changed", GTK_SIGNAL_FUNC (change_digits), |