stack: Fix the slide animation if the child has a non-zero allocation position

This can happen if the child has a margin, for instance.
This commit is contained in:
Jasper St. Pierre 2013-11-01 01:51:27 -04:00
parent 3e836dd9fc
commit 4f7170fd56

View File

@ -1612,6 +1612,9 @@ gtk_stack_draw_slide (GtkWidget *widget,
break;
}
x += priv->last_visible_surface_allocation.x;
y += priv->last_visible_surface_allocation.y;
cairo_save (cr);
cairo_set_source_surface (cr, priv->last_visible_surface, x, y);
cairo_paint (cr);