forked from AuroraMiddleware/gtk
stack: Clip animation drawing
We use cairo_paint() when doing that and we don't want to overdraw the content area.
This commit is contained in:
parent
a6845091f9
commit
6bb8da5564
@ -2148,6 +2148,12 @@ gtk_stack_render (GtkCssGadget *gadget,
|
|||||||
cairo_destroy (pattern_cr);
|
cairo_destroy (pattern_cr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cairo_rectangle (cr,
|
||||||
|
0, 0,
|
||||||
|
gtk_widget_get_allocated_width (widget),
|
||||||
|
gtk_widget_get_allocated_height (widget));
|
||||||
|
cairo_clip (cr);
|
||||||
|
|
||||||
switch (priv->active_transition_type)
|
switch (priv->active_transition_type)
|
||||||
{
|
{
|
||||||
case GTK_STACK_TRANSITION_TYPE_CROSSFADE:
|
case GTK_STACK_TRANSITION_TYPE_CROSSFADE:
|
||||||
|
Loading…
Reference in New Issue
Block a user