diff options
author | Benjamin Otte <otte@redhat.com> | 2012-11-30 20:36:57 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-11-30 20:36:57 +0100 |
commit | e0586e3680282a4d57d6812b77c70c136902f920 (patch) | |
tree | 66ba617593f0e81ccaa49d340dab59f77cb66051 /gtk/gtkstylecontext.c | |
parent | 66d22f101d32630aa3f030585a948d17deb91f4a (diff) | |
download | gtk+-e0586e3680282a4d57d6812b77c70c136902f920.tar.gz |
stylecontext: Expose a function to get at the current changes
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r-- | gtk/gtkstylecontext.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index a11ed5fd3e..d8245b971e 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -4512,6 +4512,26 @@ gtk_draw_insertion_cursor (GtkWidget *widget, draw_arrow); } +/** + * _gtk_style_context_get_changes: + * @context: the context to query + * + * Queries the context for the changes for the currently executing + * GtkStyleContext::invalidate signal. If no signal is currently + * emitted, this function returns %NULL. + * + * FIXME 4.0: Make this part of the signal. + * + * Returns: %NULL or the currently invalidating changes + **/ +const GtkBitmask * +_gtk_style_context_get_changes (GtkStyleContext *context) +{ + g_return_val_if_fail (GTK_IS_STYLE_CONTEXT (context), NULL); + + return context->priv->invalidating_context; +} + static AtkAttributeSet * add_attribute (AtkAttributeSet *attributes, AtkTextAttribute attr, |