stylecontext: Introduce _gtk_style_context_queue_invalidate()

This is for only queueing invalidations instead of doing a full
invalidation cycle.
This commit is contained in:
Benjamin Otte 2012-03-20 03:15:26 +01:00
parent 1a51ea3ea3
commit 39ff874a11
2 changed files with 12 additions and 0 deletions

View File

@ -3208,6 +3208,16 @@ store_animation_region (GtkStyleContext *context,
}
}
void
_gtk_style_context_queue_invalidate (GtkStyleContext *context,
GtkCssChange change)
{
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
g_return_if_fail (change != 0);
gtk_style_context_invalidate (context);
}
/**
* gtk_style_context_invalidate:
* @context: a #GtkStyleContext.

View File

@ -35,6 +35,8 @@ const GValue * _gtk_style_context_peek_style_property (GtkStyleContext *c
GType widget_type,
GtkStateFlags state,
GParamSpec *pspec);
void _gtk_style_context_queue_invalidate (GtkStyleContext *context,
GtkCssChange change);
void _gtk_style_context_invalidate_animation_areas (GtkStyleContext *context);
void _gtk_style_context_coalesce_animation_areas (GtkStyleContext *context,
GtkWidget *widget);