diff options
author | Benjamin Otte <otte@redhat.com> | 2015-02-27 18:41:13 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:33 +0100 |
commit | 759d8dafd99d47466aaffc355906955a0c658005 (patch) | |
tree | 781142ba7869980fb06e15fb8691a14a01b0c1fe /gtk/gtkcssstyleprivate.h | |
parent | d9727290cfcbf68fe55bb29156a312b20ab9e615 (diff) | |
download | gtk+-759d8dafd99d47466aaffc355906955a0c658005.tar.gz |
cssstyle: Add gtk_css_style_is_static()
Gets rid of the need to do
if (ANIMATED_STYLE() &&
animated_style_is_static(ANIMATED_STYLE(style))
Diffstat (limited to 'gtk/gtkcssstyleprivate.h')
-rw-r--r-- | gtk/gtkcssstyleprivate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcssstyleprivate.h b/gtk/gtkcssstyleprivate.h index ad5b596b6f..d3226a635a 100644 --- a/gtk/gtkcssstyleprivate.h +++ b/gtk/gtkcssstyleprivate.h @@ -54,6 +54,8 @@ struct _GtkCssStyleClass * Optional: default impl will just return NULL */ GtkCssSection * (* get_section) (GtkCssStyle *style, guint id); + /* TRUE if this style will require changes based on timestamp */ + gboolean (* is_static) (GtkCssStyle *style); }; GType gtk_css_style_get_type (void) G_GNUC_CONST; @@ -64,6 +66,7 @@ GtkCssSection * gtk_css_style_get_section (GtkCssStyle guint id); GtkBitmask * gtk_css_style_get_difference (GtkCssStyle *style, GtkCssStyle *other); +gboolean gtk_css_style_is_static (GtkCssStyle *style); char * gtk_css_style_to_string (GtkCssStyle *style); void gtk_css_style_print (GtkCssStyle *style, |