diff options
author | Benjamin Otte <otte@redhat.com> | 2012-03-20 03:15:26 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:09 +0200 |
commit | 39ff874a112e874744a4ebcb4350a224b1e1d81b (patch) | |
tree | f10c04b1b950f134b0f7600f6262903ae6410d12 | |
parent | 1a51ea3ea3c50d71b772dd7a15468b1842ba230b (diff) | |
download | gtk+-39ff874a112e874744a4ebcb4350a224b1e1d81b.tar.gz |
stylecontext: Introduce _gtk_style_context_queue_invalidate()
This is for only queueing invalidations instead of doing a full
invalidation cycle.
-rw-r--r-- | gtk/gtkstylecontext.c | 10 | ||||
-rw-r--r-- | gtk/gtkstylecontextprivate.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index 6bbc6d6137..1b27dfa244 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -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. diff --git a/gtk/gtkstylecontextprivate.h b/gtk/gtkstylecontextprivate.h index b35a3aa512..41789cdd0c 100644 --- a/gtk/gtkstylecontextprivate.h +++ b/gtk/gtkstylecontextprivate.h @@ -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); |