]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkspinbutton.c
Merges from gtk-1-2
[~andy/gtk] / gtk / gtkspinbutton.c
index 8261e71589c2c2112961d20b2719640c91caf553..15f7555dc2313b57bcfd195dc6cac6623ef55324 100644 (file)
@@ -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);