forked from AuroraMiddleware/gtk
GtkWidget: Update GtkStyleContext animation regions on allocation change.
This commit is contained in:
parent
61a0544b8b
commit
3c07e3d3df
@ -4660,6 +4660,14 @@ gtk_widget_size_allocate (GtkWidget *widget,
|
||||
cairo_region_destroy (invalidate);
|
||||
}
|
||||
}
|
||||
|
||||
if (size_changed || position_changed)
|
||||
{
|
||||
GtkStyleContext *context;
|
||||
|
||||
context = gtk_widget_get_style_context (widget);
|
||||
_gtk_style_context_invalidate_animation_areas (context);
|
||||
}
|
||||
}
|
||||
|
||||
if ((size_changed || position_changed) && priv->parent &&
|
||||
@ -5632,6 +5640,7 @@ gtk_widget_send_expose (GtkWidget *widget,
|
||||
cairo_t *cr;
|
||||
int x, y;
|
||||
gboolean do_clip;
|
||||
GtkStyleContext *context;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), TRUE);
|
||||
g_return_val_if_fail (gtk_widget_get_realized (widget), TRUE);
|
||||
@ -5656,6 +5665,9 @@ gtk_widget_send_expose (GtkWidget *widget,
|
||||
gtk_cairo_set_event (cr, NULL);
|
||||
cairo_destroy (cr);
|
||||
|
||||
context = gtk_widget_get_style_context (widget);
|
||||
_gtk_style_context_coalesce_animation_areas (context);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user