summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstyleprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-12 22:44:58 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-01-16 12:02:44 -0500
commitb2b89f6c5765bc3731b83b4951b4603a70689437 (patch)
tree4d882cc45cbc1b164e27f5bc22ee3ee5fd3fa249 /gtk/gtkcssstyleprivate.h
parent5ac24db04961c5d139c72027008bba475c9113a3 (diff)
downloadgtk+-b2b89f6c5765bc3731b83b4951b4603a70689437.tar.gz
css: Add gtk_css_style_get_static_style
This lets us avoid poking directly at the GtkCssAnimatedStyle struct in gtkcssnode.c.
Diffstat (limited to 'gtk/gtkcssstyleprivate.h')
-rw-r--r--gtk/gtkcssstyleprivate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcssstyleprivate.h b/gtk/gtkcssstyleprivate.h
index c0add354ad..6c4fcd035b 100644
--- a/gtk/gtkcssstyleprivate.h
+++ b/gtk/gtkcssstyleprivate.h
@@ -56,6 +56,8 @@ struct _GtkCssStyleClass
guint id);
/* TRUE if this style will require changes based on timestamp */
gboolean (* is_static) (GtkCssStyle *style);
+
+ GtkCssStyle * (* get_static_style) (GtkCssStyle *style);
};
GType gtk_css_style_get_type (void) G_GNUC_CONST;
@@ -74,6 +76,7 @@ gboolean gtk_css_style_print (GtkCssStyle
PangoAttrList * gtk_css_style_get_pango_attributes (GtkCssStyle *style);
PangoFontDescription * gtk_css_style_get_pango_font (GtkCssStyle *style);
+GtkCssStyle * gtk_css_style_get_static_style (GtkCssStyle *style);
G_END_DECLS