mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 08:50:28 +00:00
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:
parent
1a51ea3ea3
commit
39ff874a11
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user