X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkspinbutton.c;h=15f7555dc2313b57bcfd195dc6cac6623ef55324;hb=10ba4fd066042b4335ae45e7560565872f71ba9b;hp=8261e71589c2c2112961d20b2719640c91caf553;hpb=3f98a849c70ae570b78095cef0152a33ec07c64e;p=~andy%2Fgtk diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 8261e7158..15f7555dc 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);