From 10ba4fd066042b4335ae45e7560565872f71ba9b Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 14 Mar 2000 19:57:25 +0000 Subject: Merges from gtk-1-2 --- gtk/gtkspinbutton.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk/gtkspinbutton.c') diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 8261e71589..15f7555dc2 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -509,7 +509,8 @@ gtk_spin_button_size_allocate (GtkWidget *widget, g_return_if_fail (allocation != NULL); child_allocation = *allocation; - child_allocation.width -= ARROW_SIZE + 2 * widget->style->klass->xthickness; + if (child_allocation.width > ARROW_SIZE + 2 * widget->style->klass->xthickness) + child_allocation.width -= ARROW_SIZE + 2 * widget->style->klass->xthickness; GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, &child_allocation); -- cgit v1.2.1